Graphics Reference
In-Depth Information
Figure C-6. Ring with cutouts
You want to cut the square shapes out of the ring band, so you need
to use difference to subtract the squares from the main band. Now
this code becomes a double subtraction problem. If you turn on the
thrown together view, you can see all of the geometries before you
perform the subtraction or difference operation Figure C-7 .
This rotates your object around the origin of the coordinate system
and, like the cube, takes a three-value array. The values are the x, y, z
axes and are specified in that order. It is possible to rotate a shape in
more than one axis at a time. In this example each of the cubes are
being rotated around the z axis by increments of 45 degrees.
This line shows the creation and rotation of the square shape, which
is actually a rectangular box. It helps to read this line from right to left.
First you create the rectangle shape using the cube geometries, then
you perform rotation operations on it.
The OpenSCAD code for this parametric ring is available on
Thingiverse as v1.0: http://www.thingiverse.com/thing:
36097 . There is also a second version, v2.0 that is the same
object, but the code creates the square cutouts using iteration
over a vector of vectors (rotation).
 
Search WWH ::




Custom Search