Pass everything to polygon() (line 13), and, hey presto, you have yourself a cute little house with a window and a door ( Figure 5).įigure 10: The new arm with its reinforcement in the Cura slicer ready to be printed.
Concatenate the array of points (line 10) and put the paths into an array of arrays (line 11). Then you have a path for each object (lines 2, 5, and 8). You have each object ( facade, window, and door) as an array of points (lines 1, 4, and 7). The usefulness of paths() becomes clear when you need to cut holes in your 2D object.Ĭonsider, for example, Listing 1. It is the paths() parameter that tells OpenSCAD in which order to draw the shape. The line polygon(points=,, ,, ], paths=]) Īlso draws a house-like polygon, but the points are not in the given order. You can also use the paths() parameter for more complex polygons. OpenSCAD will draw from to, then from to, and so on and will finish by closing the polygon, joining with the starting point at. The renderer then draws the polygon, in this case, a house-like shape. In its simplest form, you pass it a list of vertices that are in the order in which you want to draw the polygon itself: polygon(,, ,, ]) You create polygons by using the (unsurprisingly) inbuilt polygon() function. Once adjusted, you use a screw-like bit ( Figure 2, bottom right) to tighten the pieces to make sure they don't move.įigure 4: A 2D projection of what your 3D arm will look like.įigure 4 shows an OpenSCAD polygon. You slot a piece with two prongs into a piece with three prongs, and, thanks to the fact that the prongs are curved, you can adjust the angle to your liking. They usually end in two or three semicircular prongs (see Figure 2). Most sports camera accessories have a pretty standard way of connecting one with another. It would also have to bend upwards at some point, so the camera had a good view of what was happening on the bed otherwise, it would be too low. To clear the hotbed and allow the camera to focus properly, the arm would have to be relatively long, at least 10cm.
In addition, by affixing the arm to a corner and threading the screw used for leveling the bed through it, the arm has extra grip and doesn't fall off. It doesn't get hot down there, so there is no danger of the plastic getting soft or melting. Anatomy of an Armīy studying my own printer (a Creality 3D Ender 3), I concluded that the best place to affix the arm would be to the hotbed's undercarriage. You will also be able to make cool, if slightly dizzying, time-lapse photographs of the proceedings. Figure 1: An arm for holding a sports camera helps you film your prints.