mesh_to_vox

Crates.iomesh_to_vox
lib.rsmesh_to_vox
version0.1.1
sourcesrc
created_at2024-05-18 07:57:57.8776
updated_at2024-05-18 08:04:37.538243
descriptionA program to convert triangle meshes to voxels.
homepage
repositoryhttps://github.com/noahbadoa/MeshToVox
max_upload_size
id1244142
size576,468
(noahbadoa)

documentation

README

MeshToVox

A Command line ultility to convert triangle meshes into voxels.

Cli Usage

Program Arguments: * --f string <input path>: (required) Supported Formats : glb/gltf
* --o string <output path>: (required) Supported Formats : .gltf, .vox
* --dim int <size of voxel grid>: (default: 1022)
* --timer bool: (default: false) Outputs profiling imformation
* --sparse bool: (default: true) Removes non visible voxel faces ie inside of a sphere. Compatible with all meshes. Ignored for vox file format. Significantly reduces file size but takes more time and memory.

Installation

Cargo is requried for installation.
You can either install with cargo install mesh_to_vox. Or clone the repo and run with cargo run --release -- (your argument)

Examples:

cargo install mesh_to_vox; mesh_to_vox --f data/original/person.glb --o data/test_gltf/test.gltf --dim 2048 --sparse true example

Todo

  • Multi-Threading / Gpu support
  • Directed cycle graph output format
  • Normals
Commit count: 3

cargo fmt