OpenVDB
12.0.0
|
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 |
interiorTest | function Coord -> Bool that evaluates to true inside of the mesh and false outside, for more see evaluateInteriortest |
interiorTestStrat | determines how the interiorTest is used, see InteriorTestStrategy |