voxelizer

Crates.iovoxelizer
lib.rsvoxelizer
version1.0.0
sourcesrc
created_at2020-09-17 08:45:51.093568
updated_at2020-09-17 08:45:51.093568
descriptionA Rust port of karimnaaji's C Voxelizer
homepagehttps://github.com/TheArchitect4855/voxelizer-rs
repositoryhttps://github.com/TheArchitect4855/voxelizer-rs
max_upload_size
id289724
size45,950
Kurtis Knodel (TheArchitect4855)

documentation

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);
  1. Voxelizing a mesh into a point cloud
let mesh = Mesh::new(vertices, colours, normals, indices);
let pointcloud = mesh.voxelize_pointcloud(voxel_size, precision);
  1. Voxelizing a mesh into a texture (colour array).
let mesh = Mesh::new(vertices, colours, normals, indices);
let voxels = mesh.voxelize_texture(width, height, depth);
Commit count: 11

cargo fmt