Vec3I Vec4I: Xform, Points, Triangles, Quads, Exbandwidth, Inbandwidth
Vec3I Vec4I: Xform, Points, Triangles, Quads, Exbandwidth, Inbandwidth
( xform,
meshToSignedDistanceField &
const std::vector< Vec3s > & points,
const std::vector< Vec3I > & triangles,
inline
const std::vector< Vec4I > & quads,
float exBandWidth,
float inBandWidth
)
Convert a triangle and quad mesh to a signed distance field with an asymmetrical narrow band.
Returns
a grid of type GridType containing a narrow-band signed distance field representation of
the input mesh.
Exceptions
TypeError if GridType is not scalar or not floating-point
Note
Requires a closed surface but not necessarily a manifold surface. Supports surfaces with
self intersections and degenerate faces and is independent of mesh surface normals.
Parameters
xform transform for the output grid
points list of world space point positions
triangles triangle index list
quads quad index list
exBandWidth the exterior narrow-band width in voxel units
inBandWidth the interior narrow-band width in voxel units
http://www.openvdb.org/documentation/doxygen/namespaceopenvdb_1_1v4__0__2_1_1tools.h
tml#ab994dead75e3d110e11eb64dce6ca65a