Mesh any scalar grid that has a continuous isosurface.
More...
#include <VolumeToMesh.h>
Mesh any scalar grid that has a continuous isosurface.
Definition at line 169 of file VolumeToMesh.h.
openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::VolumeToMesh |
( |
double |
isovalue = 0 , |
|
|
double |
adaptivity = 0 , |
|
|
bool |
relaxDisorientedTriangles = true |
|
) |
| |
|
inline |
- Parameters
-
isovalue | Determines which isosurface to mesh. |
adaptivity | Adaptivity threshold [0 to 1] |
relaxDisorientedTriangles | Toggle relaxing disoriented triangles during adaptive meshing. |
Definition at line 4818 of file VolumeToMesh.h.
template<typename InputGridType >
void openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::operator() |
( |
const InputGridType & |
inputGrid | ) |
|
|
inline |
Main call.
- Note
- Call with scalar typed grid.
Definition at line 4879 of file VolumeToMesh.h.
std::vector<uint8_t>& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::pointFlags |
( |
| ) |
|
|
inline |
const std::vector<uint8_t>& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::pointFlags |
( |
| ) |
const |
|
inline |
PointList& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::pointList |
( |
| ) |
|
|
inline |
const PointList& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::pointList |
( |
| ) |
const |
|
inline |
size_t openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::pointListSize |
( |
| ) |
const |
|
inline |
PolygonPoolList& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::polygonPoolList |
( |
| ) |
|
|
inline |
const PolygonPoolList& openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::polygonPoolList |
( |
| ) |
const |
|
inline |
size_t openvdb::OPENVDB_VERSION_NAME::tools::VolumeToMesh::polygonPoolListSize |
( |
| ) |
const |
|
inline |
- Parameters
-
tree | A boolean tree whose active topology defines the adaptivity mask. |
- Note
- The tree configuration has to match
GridT's
tree configuration.
Definition at line 4871 of file VolumeToMesh.h.
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 transferred 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
-
grid | reference surface grid of GridT type. |
secAdaptivity | Secondary 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.) |
Definition at line 4842 of file VolumeToMesh.h.
- Parameters
-
grid | A scalar grid used as a spatial multiplier for the adaptivity threshold. |
- Note
- The grid's tree configuration has to match
GridT's
tree configuration.
Definition at line 4864 of file VolumeToMesh.h.
- Parameters
-
mask | A boolean grid whose active topology defines the region to mesh. |
invertMask | Toggle to mesh the complement of the mask. |
- Note
- The mask's tree configuration has to match
GridT's
tree configuration.
Definition at line 4856 of file VolumeToMesh.h.
The documentation for this struct was generated from the following file: