OpenVDB  3.2.0
Classes | Namespaces | Functions
Clip.h File Reference

Functions to clip a grid against a bounding box or against another grid's active voxel topology. More...

#include <openvdb/Types.h>
#include <openvdb/Grid.h>
#include <openvdb/math/Math.h>
#include <openvdb/tree/LeafManager.h>
#include "GridTransformer.h"
#include "Prune.h"

Go to the source code of this file.

Classes

class  MaskInteriorVoxels< TreeT >
 
class  CopyLeafNodes< TreeT >
 
struct  BoolSampler
 
struct  ConvertGrid< FromGridT, ToGridT >
 
struct  ConvertGrid< GridT, GridT >
 

Namespaces

 openvdb
 
 openvdb::v3_2_0
 
 openvdb::v3_2_0::tools
 
 openvdb::v3_2_0::tools::clip_internal
 

Functions

template<typename GridType >
OPENVDB_STATIC_SPECIALIZATION GridType::Ptr clip (const GridType &grid, const BBoxd &)
 Clip the given grid against a world-space bounding box and return a new grid containing the result. More...
 
template<typename GridType , typename MaskTreeType >
OPENVDB_STATIC_SPECIALIZATION GridType::Ptr clip (const GridType &grid, const Grid< MaskTreeType > &mask)
 Clip a grid against the active voxels of another grid and return a new grid containing the result. More...
 
template<typename GridT >
boost::disable_if< boost::is_same< ValueMask, typename GridT::BuildType >, typename GridT::template ValueConverter< ValueMask >::Type::Ptr >::type convertToMaskGrid (const GridT &grid)
 
template<typename GridT >
boost::enable_if< boost::is_same< ValueMask, typename GridT::BuildType >, typename GridT::Ptr >::type convertToMaskGrid (const GridT &grid)
 
template<typename GridType >
GridType::Ptr doClip (const GridType &grid, const typename GridType::template ValueConverter< ValueMask >::Type &aMask)
 
template<typename GridType1 , typename TreeType2 >
OPENVDB_STATIC_SPECIALIZATION GridType1::Ptr clip (const GridType1 &grid1, const Grid< TreeType2 > &grid2)
 

Detailed Description

Functions to clip a grid against a bounding box or against another grid's active voxel topology.