Skip to main content

Crate rscad_csg_bsp

Crate rscad_csg_bsp 

Source
Expand description

Binary Space Partitioning for rscad

references. https://developer.valvesoftware.com/wiki/Binary_space_partitioning

Re-exports§

pub use affine::*;
pub use bsp::*;
pub use cleanup::*;
pub use csg::*;
pub use factory::*;
pub use metadata::*;
pub use plane::*;
pub use polygon::*;
pub use primitives::*;
pub use rotation::*;

Modules§

affine
bsp
cleanup
Post-CSG polygon cleanup: remove degenerate polygons, collapse collinear vertices, and merge coplanar adjacent polygons.
csg
factory
metadata
plane
polygon
A polygon module, containing the Polygon struct and related types and methods. A polygon is a simple 2d shape in an N dimensional space, defined by its vertices and holes, and the plane it lies on. It can be tessellated into triangles using the tessellate_earcut method, which uses the earcut crate, or the tessellate_delaunay method, which uses the spade crate for Delaunay triangulation. The tessellated polygon is represented by the TessellatedPolygon struct, which contains a reference to the original polygon and a list of triangle indices.
primitives
rotation
Euler angle rotation utilities.

Macros§

WrapperTrait

Structs§

BspBackend
BSP-based CSG backend.

Traits§

Index
Number