Proyectos
Ver en GitHub
karimnaaji/voxelizer
Acerca de
Voxelizador de mallas de un solo encabezado, escrito en C99.
Diseño y multimediaCrecimiento de estrellas medido
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalMesh voxelizer
Header only mesh voxelizer in ANSI C

About
Converts meshes and performs triangle-cube intersection to output a voxelized mesh.
How to use
Include the header only file as following once:
#define VOXELIZER_IMPLEMENTATION
#include "voxelizer.h"
To generate a voxelized mesh, create an instance of vx_mesh_t and initialize its
vertices and indices like this:
vx_mesh_t* mesh;
vx_mesh_t* result;
mesh = vx_mesh_alloc(nvertices, nindices);
// Add vertices and indices from the original mesh you want to voxelize
// [...]
// Precision factor to reduce "holes" artifact
float precision = 0.01;
// Run voxelization
result = vx_voxelize(mesh, 0.025, 0.025, 0.025, precision);
vx_mesh_free(result);
vx_mesh_free(mesh);
Explorar proyectos relacionados
Cargando…