#include <MeshToVolume.h>
Custom Grid and Tree types.
Custom Grid and Tree types.
Custom Grid and Tree types.
Custom Grid and Tree types.
Custom Grid and Tree types.
typedef DistTreeT::template ValueConverter<bool>::Type StencilTreeT |
Custom Grid and Tree types.
MeshToVolume |
( |
openvdb::math::Transform::Ptr & |
transform, |
|
|
int |
conversionFlags = 0 , |
|
|
InterruptT * |
interrupter = NULL , |
|
|
int |
signSweeps = 1 |
|
) |
| |
Mesh to Level Set / Signed Distance Field conversion.
- Note
- Requires a closed surface but not necessarily a manifold surface. Supports surfaces with self intersections, degenerate faces and is independent of mesh surface normals.
- Parameters
-
pointList | List of points in grid index space, preferably unique and shared by different polygons. |
polygonList | List of triangles and/or quads. |
exBandWidth | The exterior narrow-band width in voxel units. |
inBandWidth | The interior narrow-band width in voxel units. |
void convertToUnsignedDistanceField |
( |
const std::vector< Vec3s > & |
pointList, |
|
|
const std::vector< Vec4I > & |
polygonList, |
|
|
DistValueT |
exBandWidth |
|
) |
| |
|
inline |
Mesh to Unsigned Distance Field conversion.
- Note
- Does not requires a closed surface.
- Parameters
-
pointList | List of points in grid index space, preferably unique and shared by different polygons. |
polygonList | List of triangles and/or quads. |
exBandWidth | The narrow-band width in voxel units. |
DistGridT::Ptr distGridPtr |
( |
| ) |
const |
|
inline |
Returns a narrow-band (signed) distance field / level set grid.
Returns a grid containing the closest-primitive index for each voxel in the narrow-band.
The documentation for this class was generated from the following file: