Expand description
Unified CSG backend traits and BSP backend implementation.
Each CSG backend defines a marker type implementing CsgBackend, then
provides ToCsg and ToSketch impls for rscad-core primitive types.
Generic wrapper impls (transforms, booleans, containers) are provided as
blanket impls over any CsgBackend.
Re-exports§
pub use dynamic::DynamicBackend;pub use dynamic::dynamic_to_csg;pub use dynamic::dynamic_to_sketch;pub use stack::on_csg_stack;
Modules§
- dynamic
- Generic
DynamicObjectdispatch shared by every CSG backend. - stack
- Big-stack execution for deep CSG recursion.
- stl
- Shared STL framing: binary/ASCII writers over a backend-agnostic
triangle stream. Backends supply
(unit normal, [v0, v1, v2])triangles from their own tessellation; the byte/text framing lives once here.
Traits§
- CsgBackend
- Marker trait for CSG backends.
- CsgTo
Mesh - Backend can produce Bevy meshes from its 3D solid type.
- CsgTo
Stl - Backend can export its 3D solid type as STL.
- ToCsg
- Convert an
rscad-core3D geometry type into a backend’s solid. - ToSketch
- Convert an
rscad-core2D geometry type into a backend’s sketch.