| Crates.io | crater-rs |
| lib.rs | crater-rs |
| version | 0.8.0 |
| created_at | 2024-10-02 22:55:38.600762+00 |
| updated_at | 2025-07-14 23:54:10.904893+00 |
| description | A library for N-dimensional arbitrary geometries |
| homepage | |
| repository | https://gitlab.com/games1122013/crater.rs |
| max_upload_size | |
| id | 1394712 |
| size | 6,351,101 |

High-performance N-dimensional geometric modeling and analysis in Rust
⚠️ Pre-1.0 Development ⚠️
The API is evolving rapidly. Breaking changes may occur until version 1.0.0.
crater.rs is a powerful library for N-dimensional geometric modeling and computational analysis, built on the Burn machine learning framework. It enables GPU-accelerated geometric computations with support for CPU, CUDA, Metal, and WebGPU backends.
Experience crater.rs in action with our interactive raycast gallery featuring mesh extraction.
f(x₁, x₂, ..., xₙ) ≤ 0Add crater.rs to your project:
cargo add crater-rs
use crater::csg::prelude::*;
use burn::backend::wgpu::Wgpu;
// Create a 3D sphere
let device = Default::default();
let sphere = Field3D::<Wgpu>::sphere(2.0, device);
// Convert to implicit surface region
let region = sphere.into_isosurface(0.0).region();
// Generate mesh using marching cubes
let mesh = marching_cubes(&MarchingCubesParams {
region,
bounds: BoundingBox::new([-3.0; 3], [3.0; 3]),
resolution: (32, 32, 32),
algebra: Algebra::default(),
}, &device);
Run the interactive raycast gallery locally:
cargo run --example raycast-gallery --release
Then open raycast-gallery.html in your browser to explore ray casting with real-time mesh visualization.
phlux.rs - Monte Carlo neutron transport for nuclear reactor physics
This project is licensed under the MIT License - see the LICENSE file for details.