Hardware Reference
In-Depth Information
}
}
gasket();
This code produces a simple gasket as shown in Figure 6.1 .
FIGURE 6.1 A 3-D rendering of a simple parametric gasket.
In this code, anything following a line that begins with // is commented out and ignored
when generating the STL image. The gasket is developed by making two simple shapes (cyl-
inders) and subtracting one from the other using the difference command. For a complete tu-
torial on how to use OpenSCAD, see the OpenSCAD User Manual, 4 which is an open wiki
book and thus constantly updated and improved. Although making a simple gasket could be
accomplished in less lines of code and comments, this code is writen to be as useful for others
as possible. First, it is well documented explaining what every variable is. In addition, it is put
in the format to be able to be used for the Thingiverse customizer. 5 When the code is opened
in the customizer, it looks like Figure 6.2 .
 
 
 
Search WWH ::




Custom Search