HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType > Class Template Reference

Level set fracturing. More...

#include <LevelSetFracture.h>

Public Types

typedef std::vector< Vec3s > Vec3sList
 
typedef std::vector< math::QuatsQuatsList
 
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 Vec3sList *points=NULL, const QuatsList *rotations=NULL, bool cutterOverlap=true)
 Divide volumes represented by level set grids into multiple, disjoint pieces by intersecting them with one or more "cutter" volumes, also represented by level sets. More...
 
GridPtrListfragments ()
 Return a list of new fragments, not including the residuals from the input grids. More...
 
void clear ()
 Remove all elements from the fragment list. More...
 

Detailed Description

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

Level set fracturing.

Definition at line 62 of file LevelSetFracture.h.

Member Typedef Documentation

template<class GridType , class InterruptType = util::NullInterrupter>
typedef std::list<typename GridType::Ptr> openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::GridPtrList

Definition at line 67 of file LevelSetFracture.h.

template<class GridType , class InterruptType = util::NullInterrupter>
typedef GridPtrList::iterator openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::GridPtrListIter

Definition at line 68 of file LevelSetFracture.h.

template<class GridType , class InterruptType = util::NullInterrupter>
typedef std::vector<math::Quats> openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::QuatsList

Definition at line 66 of file LevelSetFracture.h.

template<class GridType , class InterruptType = util::NullInterrupter>
typedef std::vector<Vec3s> openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::Vec3sList

Definition at line 65 of file LevelSetFracture.h.

Constructor & Destructor Documentation

template<class GridType , class InterruptType >
openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::LevelSetFracture ( InterruptType *  interrupter = NULL)
explicit

Default constructor.

Parameters
interrupteroptional interrupter object

Definition at line 176 of file LevelSetFracture.h.

Member Function Documentation

template<class GridType , class InterruptType = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::clear ( void  )
inline

Remove all elements from the fragment list.

Definition at line 102 of file LevelSetFracture.h.

template<class GridType , class InterruptType >
void openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::fracture ( GridPtrList grids,
const GridType &  cutter,
bool  segment = false,
const Vec3sList points = NULL,
const QuatsList rotations = NULL,
bool  cutterOverlap = true 
)

Divide volumes represented by level set grids into multiple, disjoint pieces by intersecting them with one or more "cutter" volumes, also represented by level sets.

If desired, the process can be applied iteratively, so that fragments created with one cutter are subdivided by other cutters.

Note
The incoming grids and the cutter are required to have matching transforms and narrow band widths!
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 grids
pointsoptional list of world space points at which to instance the cutter object (if null, use the cutter's current position only)
rotationsoptional list of custom rotations for each cutter instance
cutterOverlaptoggle to allow consecutive cutter instances to fracture previously generated fragments

Definition at line 185 of file LevelSetFracture.h.

template<class GridType , class InterruptType = util::NullInterrupter>
GridPtrList& openvdb::OPENVDB_VERSION_NAME::tools::LevelSetFracture< GridType, InterruptType >::fragments ( )
inline

Return a list of new fragments, not including the residuals from the input grids.

Definition at line 99 of file LevelSetFracture.h.


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