Level set fracturing.
More...
#include <LevelSetUtil.h>
template<class GridType, class InterruptType = util::NullInterrupter>
class openvdb::v0_104_0::tools::LevelSetFracture< GridType, InterruptType >
Level set fracturing.
Default constructor.
- Parameters
-
interrupter | Optional interrupter object. |
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
-
grids | List of grids to fracture. The residuals of the fractured grids will remain in this list. |
cutter | A level set grid to use as the cutter object. |
segment | Toggle to split disjoint fragments into their own girds. |
points | Optional list of points to instance the cutter object onto. The cutter object is used in place if no points are provided. |
randomizeRotation | Toggle to apply a random rotation to each instance point. |
cutterOverlap | Toggle 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.
- 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: