Spacer
This is what is generated from spacer();.
Customizing spacer with OpenSCAD parameters
spacer is a small cylinder that goes on an m3 screw to create a gap of a precise height between two parts.
Spacers are also useful for spacing out wheels, gears, and bearings on a 3mm steel round rod.
Here it is called with every parameter spelled out:
spacer(
outer_diameter = 5.5,
inner_diameter = global_default_hole_diameter,
height = 5,
echo_parameters = true
);
| outer_diameter | the spacer's outer diameter in mm (default 5.5). |
| inner_diameter | the through-hole diameter in mm (default global_default_hole_diameter, sized for m3 screws). |
| height | the spacer height in mm (default 5). |
| echo_parameters | when true (default), the OpenSCAD console echoes the full parameter list when you preview or render the module. |
If you leave a parameter out of the module call, that parameter will just have the default value. For example, these are all valid module calls:
spacer();
spacer(height = 3);
spacer(outer_diameter = 6, height = 8);