https://github.com/thearchitect4855/voxelizer-rs
A Rust port of karimnaaji's C Voxelizer
https://github.com/thearchitect4855/voxelizer-rs
c ffi rust voxelization voxelizer voxels
Last synced: 9 months ago
JSON representation
A Rust port of karimnaaji's C Voxelizer
- Host: GitHub
- URL: https://github.com/thearchitect4855/voxelizer-rs
- Owner: TheArchitect4855
- License: mit
- Created: 2020-05-26T18:14:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T22:52:36.000Z (about 2 years ago)
- Last Synced: 2025-09-10T08:49:38.607Z (10 months ago)
- Topics: c, ffi, rust, voxelization, voxelizer, voxels
- Language: C
- Size: 16.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# voxelizer-rs
A Rust port of karimnaaji's C Voxelizer
This is a Rust port of karimnaaji's mesh voxelizer written in C. It is simple to use and has been carefully ported to Rust to give the most seamless experience possible.
## Examples
1. Voxelizing a mesh
```
let mesh = Mesh::new(vertices, colours, normals, indices);
let voxelized = mesh.voxelize(voxel_size, precision);
```
2. Voxelizing a mesh into a point cloud
```
let mesh = Mesh::new(vertices, colours, normals, indices);
let pointcloud = mesh.voxelize_pointcloud(voxel_size, precision);
```
3. Voxelizing a mesh into a texture (colour array).
```
let mesh = Mesh::new(vertices, colours, normals, indices);
let voxels = mesh.voxelize_texture(width, height, depth);
```