HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TopologyToLevelSet.h File Reference

This tool generates a narrow-band signed distance field / level set from the interface between active and inactive voxels in a vdb grid. More...

#include "LevelSetFilter.h"
#include "Morphology.h"
#include "SignedFloodFill.h"
#include <openvdb/Grid.h>
#include <openvdb/Types.h>
#include <openvdb/math/FiniteDifference.h>
#include <openvdb/util/NullInterrupter.h>
#include <tbb/task_group.h>
+ Include dependency graph for TopologyToLevelSet.h:

Go to the source code of this file.

Classes

struct  openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal::DilateOp< TreeT >
 
struct  openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal::ErodeOp< TreeT >
 
struct  openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal::OffsetAndMinComp< TreeType >
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 
 openvdb::OPENVDB_VERSION_NAME::tools
 
 openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal
 

Functions

template<typename GridT >
GridT::template ValueConverter
< float >::Type::Ptr 
openvdb::OPENVDB_VERSION_NAME::tools::topologyToLevelSet (const GridT &grid, int halfWidth=3, int closingSteps=1, int dilation=0, int smoothingSteps=0)
 Compute the narrow-band signed distance to the interface between active and inactive voxels in the input grid. More...
 
template<typename GridT , typename InterrupterT >
GridT::template ValueConverter
< float >::Type::Ptr 
openvdb::OPENVDB_VERSION_NAME::tools::topologyToLevelSet (const GridT &grid, int halfWidth=3, int closingSteps=1, int dilation=0, int smoothingSteps=0, InterrupterT *interrupt=NULL)
 Compute the narrow-band signed distance to the interface between active and inactive voxels in the input grid. More...
 
template<typename GridType , typename InterrupterType >
void openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal::normalizeLevelSet (GridType &grid, const int halfWidthInVoxels, InterrupterType *interrupt=NULL)
 
template<typename GridType , typename InterrupterType >
void openvdb::OPENVDB_VERSION_NAME::tools::ttls_internal::smoothLevelSet (GridType &grid, int iterations, int halfBandWidthInVoxels, InterrupterType *interrupt=NULL)
 

Detailed Description

This tool generates a narrow-band signed distance field / level set from the interface between active and inactive voxels in a vdb grid.

Example:
Combine with tools::PointsToVolume for fast point cloud to level set conversion.

Definition in file TopologyToLevelSet.h.