OpenVDB  0.104.0
Public Types | Public Member Functions | List of all members
LevelSetFracture< GridType, InterruptType > Class Template Reference

Level set fracturing. More...

#include <LevelSetUtil.h>

Public Types

typedef std::vector< Vec3sPointVec
 
typedef std::list< typename
GridType::Ptr > 
GridPtrList
 
typedef GridPtrList::iterator GridPtrListIter
 

Public Member Functions

 LevelSetFracture (InterruptType *interrupter=NULL)
 Default constructor. More...
 
void fracture (GridPtrList &grids, const GridType &cutter, bool segment=false, const PointVec *points=NULL, bool randomizeRotation=true, bool cutterOverlap=true)
 Fracture level set grids. More...
 
GridPtrListfragments ()
 
void clear ()
 Removes all elements from the fragment list. More...
 

Detailed Description

template<class GridType, class InterruptType = util::NullInterrupter>
class openvdb::v0_104_0::tools::LevelSetFracture< GridType, InterruptType >

Level set fracturing.

Member Typedef Documentation

typedef std::list<typename GridType::Ptr> GridPtrList
typedef GridPtrList::iterator GridPtrListIter
typedef std::vector<Vec3s> PointVec

Constructor & Destructor Documentation

LevelSetFracture ( InterruptType *  interrupter = NULL)

Default constructor.

Parameters
interrupterOptional interrupter object.

Member Function Documentation

void clear ( )
inline

Removes all elements from the fragment list.

void fracture ( GridPtrList grids,
const GridType &  cutter,
bool  segment = false,
const PointVec points = NULL,
bool  randomizeRotation = true,
bool  cutterOverlap = true 
)

Fracture level set grids.

Parameters
gridsList of grids to fracture. The residuals of the fractured grids will remain in this list.
cutterA level set grid to use as the cutter object.
segmentToggle to split disjoint fragments into their own girds.
pointsOptional list of points to instance the cutter object onto. The cutter object is used in place if no points are provided.
randomizeRotationToggle to apply a random rotation to each instance point.
cutterOverlapToggle to allow consecutive cutter instances to fracture previously generated fragments.
Note
All grids are expected to have matching transforms and narrow band widths. Instance points need to be in grid index space.
GridPtrList& fragments ( )
inline
Returns
List of new fragments (does not include the residuals from the input grids).

The documentation for this class was generated from the following file: