Skip to main content

Module voxelize

Module voxelize 

Source

Structs§

GpuVoxelizeParams
GPU voxelization uniform parameters (for compute shader path).
Triangle
A triangle with vertex positions, normal, color, and emission.
VoxelizeConfig
Configuration for voxelization.
VoxelizeStats
Statistics from voxelization.

Constants§

VOXELIZE_COMP_SRC
Embedded compute shader source for GPU voxelization.

Functions§

compute_voxelize_stats
conservative_voxelize
Conservative voxelization: dilated rasterization producing all voxels a triangle might touch.
merge_grids
Merge two voxel grids of the same resolution. Non-empty voxels from b overwrite a.
triangle_box_intersection
SAT-based triangle-box intersection test.
voxelize_point_cloud
Voxelize a point cloud.
voxelize_spheres
Voxelize spheres into a grid.
voxelize_triangles
Voxelize a set of triangles into a dense grid.