meshToLevelset
carb::volume::GridData* meshToLevelset(const float* points,
size_t numPoints,
const uint32_t* faceVertexIndices,
size_t numFaceVertexIndices,
const uint32_t* faceVertexCounts,
size_t numFaceVertexCounts,
int dim,
float voxel,
float width)
Get a level set volume from mesh data.
Arguments
pointsThe vertex coordinates.numPointsThe number of vertices.faceVertexIndicesThe face vertex indices.numFaceVertexIndicesThe number of face vertex indices.faceVertexCountsThe list of numbers of face vertices per face (3 or 4).numFaceVertexCountsThe number of faces.dimThe largest dimension in voxel units of the mesh bbox (defaults to 256). Ifvoxelis defined then ‘dim’ is ignored”.voxelThe voxel size in world units (by defaultsdimis used to derivevoxel). If specified this option takes precedence overdim.widthThe half-width in voxel units of the output narrow-band level set (defaults to 3 units on either side of the zero-crossing).
Return
The level set volume created.