Crater.rs: N-Dimensional Constructive Solid Geometry

crater.rs is a library for constructing and analyzing N-dimensional scalar fields. Primary features include:

  • Constructive Solid Geometry (CSG) for N-dimensional scalar fields
  • Ray casting for N-dimensional CSG regions
  • Volume estimation for N-dimensional CSG regions
  • Surface analysis for N-dimensional CSG regions
  • Marching cubes for isosurface extraction
  • Field visualization for N-dimensional scalar fields

Ready to start building? Head to Getting Started for installation instructions and your first example.

If you're not yet convinced, check out the Ray Casting Gallery, showing crater.rs's most sophisticated feature. This gallery is generated from the examples/raycast/gallery.rs example.

Citation and References

When using crater.rs in academic work, please cite:

@software{crater_rs,
  title={`crater.rs`: N-Dimensional Constructive Solid Geometry Library},
  author={Clyde Huibregtse},
  year={2025},
  url={https://gitlab.com/games1122013/crater.rs/},
  version={0.8.0}
}