Skip to main content

Module eval

Module eval 

Source
Expand description

OpenSCAD evaluator: parsed AST → rscad_core::DynamicObject scene.

The pipeline is openscad-parser AST → [interp::Interp] (scopes, expressions, user functions/modules) → geometry lowering → DynamicObject tree wrapped in a rscad_core::SceneFile.

Semantics follow OpenSCAD: hoisted last-assignment-wins variables, three namespaces, dynamically scoped $-variables, degree-based trig, and warn-and-skip handling for unsupported constructs.

Structs§

RangeValue
An OpenSCAD numeric range [start : step : end] (inclusive end).
ScadDiagnostic
A resolved evaluator diagnostic.
ScadModel
A fully evaluated OpenSCAD model: one scene tree named after the source file, plus all diagnostics produced along the way.

Enums§

ScadError
Errors that abort OpenSCAD evaluation outright.
Severity
Diagnostic severity.
Value
A dynamically-typed OpenSCAD value.

Functions§

evaluate_file
Evaluate a .scad file (and its include/use closure) to a scene.
evaluate_source
Evaluate in-memory OpenSCAD source. path is virtual: its parent directory anchors include/use resolution and its stem names the tree.