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§
- Extracted
Transforms - Result of peeling off top-level transforms from a
DynamicObjecttree. - Scene
File - A scene file containing one or more named CSG trees.
Enums§
- Dynamic
Object - A dynamically-typed CSG object node.
Traits§
- ToDynamic
- Convert a statically-typed rscad-core object into a
DynamicObject.