Check OpenSCAD Printability
tb.ops.openscad.check(
*,
source: str = ...,
params: Any = ...,
files: Any = ...,
folder: str = ...,
) -> ResultEvaluate an OpenSCAD script without changing the scene and report its printability in OpenSCAD units (millimetres): triangle count, volume, surface area, bounding-box size, separate pieces and whether the mesh is watertight, plus echo() output and warnings. Bake with openscad.run to keep it.
| Argument | Type | Default | Description |
|---|---|---|---|
source | str | — | The OpenSCAD script (.scad text), at most 4 MB. include/use reach the bundled libraries (BOSL2 and others, e.g. include <BOSL2/std.scad>) and the 'files' given. |
params | Any | — | Customizer values by parameter name, e.g. {"width": 40, "hole": false}. Only the script's declared customizer parameters are accepted; others are refused with the list of declared names. |
files | Any | — | Your own files the script may include, use or import, by path relative to the script's folder root: {"lib/peg.scad": "module peg() {...}", "part.stl": "data:model/stl;base64,..."}. Text as a string, binary files as a base64 data URL; at most 512 files and 64 MB. Paths leaving the folder are refused. |
folder | str | — | The script's own folder inside 'files' (relative includes start there); the root by default. |