Skip to main content

Crate lib_jsl_geometry

Crate lib_jsl_geometry 

Source
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 plain f64 arrays 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_d and three_d, whose shapes refer to shared points by id through the keyed tables of registry and tables (start with crate::concrete and a GeometryTableRegistry). Their components are f32.
  • four_d: Minkowski four-vectors with Lorentz boosts, and Christoffel symbols for geodesics in curved space-time.
  • coordinate_systems, geometric_traits and transformation_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.