Openscad operation reference
Generated from the current declarations. Do not edit this file by hand.
Types, limits and defaults below describe resolved values. Runtime expressions must produce these types. Unknown options are rejected; defaults apply only when omitted. Constructor options must be constant after document composition.
Index#
plate#
Choose plate for a rectangular mounting blank with positioned through-holes. Width/depth define the XY outline, height sets thickness, and optional holes remove material through both faces. Produces checked STL, generated SCAD and a geometry summary.
Native binding: difference / cube / translated cylinder through-holes. Output kind: ["geometry","text"].
Inputs: none.
| Option | Meaning | Type / constraints | Default |
|---|---|---|---|
units |
Declare mm explicitly for every dimension and translation. STL does not encode units, so consumers must also select millimetres; there is no implicit unit conversion. | {"type":"enum","values":["mm"]} |
required |
segments |
Set the number of straight facets around every nominal circle:16–256, divisible by four; omission uses 64. Larger counts reduce circle approximation error but increase geometry cost. Diameter spans polygon vertices; the bore across flats is diameter*cos(pi/segments). | {"type":"integer","minimum":16,"maximum":256} |
64 |
translation |
Move the entire finished part by [X,Y,Z] millimetres after construction. Omission uses [0,0,0]. Each coordinate is between -100 and 100; this changes placement without changing dimensions or local hole coordinates. | {"type":"array","items":{"type":"number","minimum":-100,"maximum":100},"minItems":3,"maxItems":3} |
[0,0,0] |
plate |
Choose plate for a rectangular mounting blank with positioned through-holes. Width/depth define the XY outline, height sets thickness, and optional holes remove material through both faces. Produces checked STL, generated SCAD and a geometry summary. Required only with operation plate; omit spacer. Dimensions are mm and local origin is the lower-left bottom corner. | {"type":"object","properties":{"width":{"type":"number","minimum":0.5,"maximum":200,"required":true},"depth":{"type":"number","minimum":0.5,"maximum":200,"required":true},"height":{"type":"number","minimum":0.5,"maximum":100,"required":true},"holes":{"type":"array","items":{"type":"object","properties":{"centre":{"type":"array","items":{"type":"number","minimum":-100,"maximum":200},"minItems":2,"maxItems":2,"required":true},"diameter":{"type":"number","minimum":0.5,"maximum":200,"required":true}}},"maxItems":16,"default":[]}}} |
required |
spacer#
Choose spacer for a concentric sleeve or washer. Supply outer diameter, bore diameter and height in mm; it is centred on XY origin and extends upwards from Z=0. Polygonal walls approximate circles, so across-flats bore clearance differs from nominal diameter.
Native binding: difference / concentric cylinders. Output kind: ["geometry","text"].
Inputs: none.
| Option | Meaning | Type / constraints | Default |
|---|---|---|---|
units |
Declare mm explicitly for every dimension and translation. STL does not encode units, so consumers must also select millimetres; there is no implicit unit conversion. | {"type":"enum","values":["mm"]} |
required |
segments |
Set the number of straight facets around every nominal circle:16–256, divisible by four; omission uses 64. Larger counts reduce circle approximation error but increase geometry cost. Diameter spans polygon vertices; the bore across flats is diameter*cos(pi/segments). | {"type":"integer","minimum":16,"maximum":256} |
64 |
translation |
Move the entire finished part by [X,Y,Z] millimetres after construction. Omission uses [0,0,0]. Each coordinate is between -100 and 100; this changes placement without changing dimensions or local hole coordinates. | {"type":"array","items":{"type":"number","minimum":-100,"maximum":100},"minItems":3,"maxItems":3} |
[0,0,0] |
spacer |
Choose spacer for a concentric sleeve or washer. Supply outer diameter, bore diameter and height in mm; it is centred on XY origin and extends upwards from Z=0. Polygonal walls approximate circles, so across-flats bore clearance differs from nominal diameter. Required only with operation spacer; omit plate. The nominal radial wall must be at least 0.5 mm. | {"type":"object","properties":{"outerDiameter":{"type":"number","minimum":0.5,"maximum":200,"required":true},"boreDiameter":{"type":"number","minimum":0.5,"maximum":200,"required":true},"height":{"type":"number","minimum":0.5,"maximum":100,"required":true}}} |
required |