Expand description
§subsphere
Sphere tessellation toolkit
This crate provides a general, easy-to-use API for working with tessellated spheres, i.e. spheres whose surface is partitioned into polygonal cells. It includes implementations for a variety of such tessellations.

§Features
-
Implicit Representation: Instead of storing geometry data directly, the tessellations, and the elements within them, are represented implicitly. They are compact zero-allocation
Copytypes that can be used to generate geometry on the fly. This lets you work with massive tessellations using very little memory. -
Versatility: This crate allows you to explore a huge variety of tessellations, all sharing a common API. There’s a bunch of adjustable parameters and you’re free to mix-and-match topologies and projections to tune the tessellation to your needs.
-
Spherical Geometry: In the world of
subsphere, there is only one geometric space: the sphere. All objects follow the contours of the sphere, and all calculations correctly account for this.
Re-exports§
pub use basetri::BaseTriSphere;pub use hex::HexSphere;pub use tri::TriSphere;
Modules§
- basetri
- Contains types related to
BaseTriSphere. - hex
- Contains types related to
HexSphere. - prelude
- Bundles the traits required to ergonomically work with tessellated spheres.
- proj
- Contains types related to projections.
- tri
- Contains types related to
TriSphere. - util
- Contains utility functions related to spheres, tessellations and projections.
Traits§
- Face
- Represents a “face” on a
Sphereof a certain type. - Half
Edge - Represents one “side” or direction of an edge on a
Sphere. - Sphere
- Partitions the surface of the unit sphere into a set of spherical polygons (
Faces). - Vertex
- Represents a vertex on a
Sphere.
Functions§
- icosphere
- Constructs a tessellation of the unit sphere by projecting an icosahedron onto it.
- octosphere
- Constructs a tessellation of the unit sphere by projecting an octohedron onto it.