OpenVDB  3.1.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/Grid.h>
#include <openvdb/math/Math.h>
#include <openvdb/tree/LeafManager.h>
#include "GridTransformer.h"
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_signed.hpp>
#include <boost/utility/enable_if.hpp>
#include <tbb/blocked_range.h>
#include <tbb/parallel_reduce.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_1_0
 
 openvdb::v3_1_0::tools
 
 openvdb::v3_1_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< bool, typename GridT::ValueType >, typename GridT::template ValueConverter< bool >::Type::Ptr >::type convertToBoolMaskGrid (const GridT &grid)
 
template<typename GridT >
boost::enable_if< boost::is_same< bool, typename GridT::ValueType >, typename GridT::Ptr >::type convertToBoolMaskGrid (const GridT &grid)
 
template<typename GridType >
GridType::Ptr doClip (const GridType &grid, const typename GridType::template ValueConverter< bool >::Type &aMask)
 

Detailed Description

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