OpenVDB
9.0.1
|
Convert polygonal meshes that consist of quads and/or triangles into signed or unsigned distance field volumes. More...
#include <openvdb/tools/MeshToVolume.h>
Convert polygonal meshes that consist of quads and/or triangles into signed or unsigned distance field volumes.
Expected interface for the MeshDataAdapter class
mesh | mesh data access class that conforms to the MeshDataAdapter interface |
transform | world-to-index-space transform |
exteriorBandWidth | exterior narrow band width in voxel units |
interiorBandWidth | interior narrow band width in voxel units (set to std::numeric_limits<float>::max() to fill object interior with distance values) |
flags | optional conversion flags defined in MeshToVolumeFlags |
polygonIndexGrid | optional grid output that will contain the closest-polygon index for each voxel in the narrow band region |