Expand description
Computational geometry: primitive types in one to four dimensions and the algorithms that work on points and meshes.
algorithms: Delaunay triangulation and Voronoi diagrams, convex hulls in 2D and 3D, polygon boolean operations, k-d trees, quadtrees and octrees, intersection tests and closest points, rotations and quaternions, and mesh smoothing, decimation and slicing. These take plainf64arrays such as[f64; 3]and index triples.- The primitive types: coordinate, free and unit vectors, lines, planes, triangles, polygon
faces, tetrahedra and meshes in
one_d,two_dandthree_d, whose shapes refer to shared points by id through the keyed tables ofregistryandtables(start withcrate::concreteand aGeometryTableRegistry). Their components aref32. four_d: Minkowski four-vectors with Lorentz boosts, and Christoffel symbols for geodesics in curved space-time.coordinate_systems,geometric_traitsandtransformation_traits: coordinate systems and the shared trait surface.
See the book entry Computational geometry.
Re-exports§
pub use dim_0 as zero_d;pub use dim_1 as one_d;pub use dim_2 as two_d;pub use dim_3 as three_d;pub use dim_4 as four_d;
Modules§
- algorithms
- Geometry algorithms.
- common
- Shared foundational traits used across all geometry dimensions. Shared foundational traits used by all geometry primitives.
- concrete
- Compatibility re-exports for the concrete geometry implementation surface. Public entry point for the concrete geometry implementation layer.
- coordinate_
systems - Coordinate-system enums and conversion traits. Coordinate-system enums, markers, and conversion traits.
- dim_0
- Zero-dimensional geometry traits centered on points. Zero-dimensional geometry traits.
- dim_1
- One-dimensional geometry traits such as lines, rays, and paths. One-dimensional line- and path-oriented geometry traits.
- dim_2
- Two-dimensional geometry traits and orientation helpers. Two-dimensional shape traits and orientation helpers.
- dim_3
- Three-dimensional geometry traits such as planes, spheres, and meshes. Three-dimensional geometry traits.
- dim_4
- Four-dimensional geometry extension points. Four-dimensional geometry extension traits.
- geometric_
traits - Compatibility re-exports for the geometry trait surface. Compatibility re-exports for the public geometry API surface.
- registry
- Concrete root registry for geometry tables. Concrete root registry for the public geometry table graph.
- tables
- Concrete keyed geometry table implementations. Concrete keyed geometry table implementations used by the public API.
- transformation_
traits - Traits for geometric transformations such as translation and rotation. Traits describing in-place geometric transformations.