An open API service indexing awesome lists of open source software.

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

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);
```