项目
在 GitHub 查看
karimnaaji/voxelizer
关于
使用 C99 编写的仅头文件网格体素化器
设计与媒体实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Mesh 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);
探索相关项目
加载中…