surface-grid

Crates.iosurface-grid
lib.rssurface-grid
version0.5.0
created_at2024-01-25 16:17:08.014582+00
updated_at2025-06-04 19:19:48.997668+00
descriptionA crate providing data structures for square-tiled grids wrapped around the surface of certain objects.
homepagehttps://github.com/WhyAreAllTheseTaken/surface-grid
repositoryhttps://github.com/WhyAreAllTheseTaken/surface-grid
max_upload_size
id1114058
size176,513
(WhyAreAllTheseTaken)

documentation

README

Surface Grid

A crate providing data structures for square-tiled grids wrapped around the surface of certain objects. This create was intended to be used for the creation of cellular automata on non-flat grids. The crate provides a trait SurfaceGrid with an associated type Point which can be used to traverse the grid squares. Additionally, for grids that wrap a sphere the Point type implements the SpherePoint trait providing conversions between geographic and surface grid coordinates.

You can view examples in examples.

The documentation is available at https://docs.rs/surface-grid/.

Available Surfaces

Spheres

  • RectangleSphereGrid - Uses an equirectangular projection to wrap a rectangle around the sphere.
  • CubeSphereGrid - Projects a cube over the sphere with each face being a square grid.
Commit count: 114

cargo fmt