OpenVDB  1.1.0
Public Member Functions | List of all members
MeshToVolume< DistGridT, InterruptT > Class Template Reference

#include <MeshToVolume.h>

Public Types

typedef DistGridT::TreeType DistTreeT
 Custom Grid and Tree types.
typedef DistTreeT::ValueType DistValueT
 Custom Grid and Tree types.
typedef DistTreeT::template
ValueConverter< Int32 >::Type 
IndexTreeT
 Custom Grid and Tree types.
typedef Grid< IndexTreeTIndexGridT
 Custom Grid and Tree types.
typedef DistTreeT::template
ValueConverter< bool >::Type 
StencilTreeT
 Custom Grid and Tree types.
typedef Grid< StencilTreeTStencilGridT
 Custom Grid and Tree types.

Public Member Functions

 MeshToVolume (openvdb::math::Transform::Ptr &, int conversionFlags=0, InterruptT *interrupter=NULL, int signSweeps=1)
void convertToLevelSet (const std::vector< Vec3s > &pointList, const std::vector< Vec4I > &polygonList, DistValueT exBandWidth=DistValueT(LEVEL_SET_HALF_WIDTH), DistValueT inBandWidth=DistValueT(LEVEL_SET_HALF_WIDTH))
 Mesh to Level Set / Signed Distance Field conversion.
void convertToUnsignedDistanceField (const std::vector< Vec3s > &pointList, const std::vector< Vec4I > &polygonList, DistValueT exBandWidth)
 Mesh to Unsigned Distance Field conversion.
void clear ()
DistGridT::Ptr distGridPtr () const
 Returns a narrow-band (signed) distance field / level set grid.
IndexGridT::Ptr indexGridPtr () const

Member Typedef Documentation

typedef DistGridT::TreeType DistTreeT

Custom Grid and Tree types.

typedef DistTreeT::ValueType DistValueT

Custom Grid and Tree types.

Custom Grid and Tree types.

typedef DistTreeT::template ValueConverter<Int32>::Type IndexTreeT

Custom Grid and Tree types.

Custom Grid and Tree types.

typedef DistTreeT::template ValueConverter<bool>::Type StencilTreeT

Custom Grid and Tree types.

Constructor & Destructor Documentation

MeshToVolume ( openvdb::math::Transform::Ptr &  transform,
int  conversionFlags = 0,
InterruptT *  interrupter = NULL,
int  signSweeps = 1 
)

Member Function Documentation

void clear ( )
void convertToLevelSet ( const std::vector< Vec3s > &  pointList,
const std::vector< Vec4I > &  polygonList,
DistValueT  exBandWidth = DistValueT(LEVEL_SET_HALF_WIDTH),
DistValueT  inBandWidth = DistValueT(LEVEL_SET_HALF_WIDTH) 
)
inline

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
pointListList of points in grid index space, preferably unique and shared by different polygons.
polygonListList of triangles and/or quads.
exBandWidthThe exterior narrow-band width in voxel units.
inBandWidthThe 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
pointListList of points in grid index space, preferably unique and shared by different polygons.
polygonListList of triangles and/or quads.
exBandWidthThe narrow-band width in voxel units.
DistGridT::Ptr distGridPtr ( ) const
inline

Returns a narrow-band (signed) distance field / level set grid.

IndexGridT::Ptr indexGridPtr ( ) const
inline

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: