Skip to main content

Module dynamic

Module dynamic 

Source
Expand description

Dynamically-typed CSG object tree.

DynamicObject is a serializable, runtime-typed representation of a CSG object tree. It serves as the common intermediate representation for:

  • Serialized scene files (RON, JSON)
  • OpenSCAD evaluation output

Every variant maps to an rscad-core concept but uses runtime typing instead of Rust generics, making it serializable and constructable at runtime (e.g. from an OpenSCAD evaluator).

The ToDynamic trait converts statically-typed rscad-core objects into DynamicObject. Types without a DynamicObject equivalent (e.g. Pattern, Offset, Projection) intentionally do not implement the trait — attempting to convert them is a compile-time error.

Structs§

ExtractedTransforms
Result of peeling off top-level transforms from a DynamicObject tree.
SceneFile
A scene file containing one or more named CSG trees.

Enums§

DynamicObject
A dynamically-typed CSG object node.

Traits§

ToDynamic
Convert a statically-typed rscad-core object into a DynamicObject.