OpenVDB  1.1.0
Public Member Functions | List of all members
VolumeToMesh Class Reference

Mesh any scalar grid with a continuous isosurface. More...

#include <VolumeToMesh.h>

Public Member Functions

 VolumeToMesh (double isovalue=0, double adaptivity=0)
PointListpointList ()
const size_t & pointListSize () const
PolygonPoolListpolygonPoolList ()
const PolygonPoolListpolygonPoolList () const
const size_t & polygonPoolListSize () const
template<typename GridT >
void operator() (const GridT &)
 main call.
void setRefGrid (const GridBase::ConstPtr &grid, double secAdaptivity=0)
 When surfacing fractured SDF fragments, the original unfractured SDF grid can be used to eliminate seam lines and tag polygons that are coincident with the reference surface with the POLYFLAG_EXTERIOR flag and polygons that are in proximity to the seam lines with the POLYFLAG_FRACTURE_SEAM flag. (The performance cost for using this reference based scheme compared to the regular meshing scheme is approximately 15% for the first fragment and neglect-able for subsequent fragments.)
template<typename GridT >
OPENVDB_DEPRECATED void accumulateAuxiliaryData (const GridT &)

Detailed Description

Mesh any scalar grid with a continuous isosurface.

Constructor & Destructor Documentation

VolumeToMesh ( double  isovalue = 0,
double  adaptivity = 0 
)
inline
Parameters
isovalueDetermines which isosurface to mesh.
adaptivityAdaptivity threshold [0 to 1]

Member Function Documentation

OPENVDB_DEPRECATED void accumulateAuxiliaryData ( const GridT &  )
inline
void operator() ( const GridT &  distGrid)
inline

main call.

Note
call with scalar typed grid.
PointList & pointList ( )
inline
const size_t & pointListSize ( ) const
inline
PolygonPoolList & polygonPoolList ( )
inline
const PolygonPoolList & polygonPoolList ( ) const
inline
const size_t & polygonPoolListSize ( ) const
inline
void setRefGrid ( const GridBase::ConstPtr grid,
double  secAdaptivity = 0 
)
inline

When surfacing fractured SDF fragments, the original unfractured SDF grid can be used to eliminate seam lines and tag polygons that are coincident with the reference surface with the POLYFLAG_EXTERIOR flag and polygons that are in proximity to the seam lines with the POLYFLAG_FRACTURE_SEAM flag. (The performance cost for using this reference based scheme compared to the regular meshing scheme is approximately 15% for the first fragment and neglect-able for subsequent fragments.)

Note
Attributes from the original asset such as uv coordinates, normals etc. are typically transfered to polygons that are marked with the POLYFLAG_EXTERIOR flag. Polygons that are not marked with this flag are interior to reference surface and might need projected UV coordinates or a different material. Polygons marked as POLYFLAG_FRACTURE_SEAM can be used to drive secondary elements such as debris and dust in a FX pipeline.
Parameters
gridreference surface grid of GridT type.
secAdaptivitySecondary adaptivity threshold [0 to 1]. Used in regions that do not exist in the reference grid. (Parts of the fragment surface that are not coincident with the reference surface.)

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