#tessellation #sphere #geometry #gamedev #graphics

subsphere-render

Rendering tool for the subsphere crate

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 26, 2025

#1278 in Math

MIT/Apache

280KB
3K SLoC

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.

Example hexagonal tessellation Example triangular tessellation

Features

  • Implicit Representation: Instead of storing geometry data directly, the tessellations, and the elements within them, are represented implicitly. They are compact zero-allocation Copy types 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.

Dependencies

~5MB
~102K SLoC