Loading...
Searching...
No Matches
LevelSetUtil.h File Reference

Miscellaneous utility methods that operate primarily or exclusively on level set grids. More...

`#include "MeshToVolume.h"`
`#include "SignedFloodFill.h"`
`#include <openvdb/Types.h>`
`#include <openvdb/Grid.h>`
`#include <openvdb/openvdb.h>`
`#include <openvdb/points/PointDataGrid.h>`
`#include <tbb/blocked_range.h>`
`#include <tbb/parallel_for.h>`
`#include <tbb/parallel_reduce.h>`
`#include <tbb/parallel_sort.h>`
`#include <algorithm>`
`#include <cmath>`
`#include <cstdlib>`
`#include <deque>`
`#include <limits>`
`#include <memory>`
`#include <set>`
`#include <vector>`

Go to the source code of this file.

## Namespaces

namespace | openvdb
namespace | openvdb::v11_0
namespace | openvdb::v11_0::tools

## Functions

template<class GridType >
void | sdfToFogVolume (GridType &grid, typename GridType::ValueType cutoffDistance=lsutilGridMax< GridType >())
| Threaded method to convert a sparse level set/SDF into a sparse fog volume.
template<class GridOrTreeType >
GridOrTreeType::template ValueConverter< bool >::Type::Ptr | sdfInteriorMask (const GridOrTreeType &volume, typename GridOrTreeType::ValueType isovalue=lsutilGridZero< GridOrTreeType >())
| Threaded method to construct a boolean mask that represents interior regions in a signed distance field.
template<typename GridOrTreeType >
GridOrTreeType::template ValueConverter< bool >::Type::Ptr | extractEnclosedRegion (const GridOrTreeType &volume, typename GridOrTreeType::ValueType isovalue=lsutilGridZero< GridOrTreeType >(), const typename TreeAdapter< GridOrTreeType >::TreeType::template ValueConverter< bool >::Type *fillMask=nullptr)
| Extracts the interior regions of a signed distance field and topologically enclosed (watertight) regions of value greater than the isovalue (cavities) that can arise as the result of CSG union operations between different shapes where at least one of the shapes has a concavity that is capped.
template<typename GridOrTreeType >
GridOrTreeType::template ValueConverter< bool >::Type::Ptr | extractIsosurfaceMask (const GridOrTreeType &volume, typename GridOrTreeType::ValueType isovalue)
| Return a mask of the voxels that intersect the implicit surface with the given isovalue.
template<typename GridOrTreeType >
void | extractActiveVoxelSegmentMasks (const GridOrTreeType &volume, std::vector< typename GridOrTreeType::template ValueConverter< bool >::Type::Ptr > &masks)
| Return a mask for each connected component of the given grid's active voxels.
template<typename GridOrTreeType >
void | segmentActiveVoxels (const GridOrTreeType &volume, std::vector< typename GridOrTreeType::Ptr > &segments)
| Separates disjoint active topology components into distinct grids or trees.
template<typename GridOrTreeType >
void | segmentSDF (const GridOrTreeType &volume, std::vector< typename GridOrTreeType::Ptr > &segments)
| Separates disjoint SDF surfaces into distinct grids or trees.
template<class GridType >
OPENVDB_DOCS_INTERNAL void | sdfToFogVolume (GridType &grid, typename GridType::ValueType cutoffDistance)
| Threaded method to convert a sparse level set/SDF into a sparse fog volume.

## Detailed Description

Miscellaneous utility methods that operate primarily or exclusively on level set grids.

Author
  Mihai Alden