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

Sample a VDB Grid onto a VDB Points attribute. More...

#include <openvdb/util/NullInterrupter.h>
#include <openvdb/tools/Interpolation.h>
#include "PointDataGrid.h"
#include "PointAttribute.h"
#include <sstream>
#include <type_traits>
+ Include dependency graph for PointSample.h:

Go to the source code of this file.

Classes

struct  openvdb::OPENVDB_VERSION_NAME::points::SampleWithRounding
 
struct  openvdb::OPENVDB_VERSION_NAME::points::DummySampleType
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< FromType, ToType >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< T, T >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< T, math::Vec2< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< T, math::Vec3< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< T, math::Vec4< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec2< T >, math::Vec2< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec3< T >, math::Vec3< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec4< T >, math::Vec4< T > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec2< T0 >, math::Vec2< T1 > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec3< T0 >, math::Vec3< T1 > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< math::Vec4< T0 >, math::Vec4< T1 > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::CompatibleTypes< ValueMask, T >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::SamplerTraits< T >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::SamplerTraits< tools::Sampler< T0, T1 > >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::SampleWithRoundingOp< ValueT, SamplerT, AccessorT, Round, Compatible >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::SampleWithRoundingOp< ValueT, SamplerT, AccessorT, true, true >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::SampleWithRoundingOp< ValueT, SamplerT, AccessorT, false, true >
 
class  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::PointDataSampler< PointDataGridT, SamplerT, FilterT, InterrupterT >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::AppendAttributeOp< PointDataGridT, ValueT >
 
struct  openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal::AppendAttributeOp< PointDataGridT, DummySampleType >
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 
 openvdb::OPENVDB_VERSION_NAME::points
 
 openvdb::OPENVDB_VERSION_NAME::points::point_sample_internal
 

Functions

template<typename PointDataGridT , typename SourceGridT , typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::points::pointSample (PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute="", const FilterT &filter=NullFilter(), InterrupterT *const interrupter=nullptr)
 Performs closest point sampling from a VDB grid onto a VDB Points attribute. More...
 
template<typename PointDataGridT , typename SourceGridT , typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::points::boxSample (PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute="", const FilterT &filter=NullFilter(), InterrupterT *const interrupter=nullptr)
 Performs tri-linear sampling from a VDB grid onto a VDB Points attribute. More...
 
template<typename PointDataGridT , typename SourceGridT , typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::points::quadraticSample (PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute="", const FilterT &filter=NullFilter(), InterrupterT *const interrupter=nullptr)
 Performs tri-quadratic sampling from a VDB grid onto a VDB Points attribute. More...
 
template<typename PointDataGridT , typename SourceGridT , typename TargetValueT = DummySampleType, typename SamplerT = SampleWithRounding, typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
void openvdb::OPENVDB_VERSION_NAME::points::sampleGrid (size_t order, PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute, const FilterT &filter=NullFilter(), const SamplerT &sampler=SampleWithRounding(), InterrupterT *const interrupter=nullptr, const bool threaded=true)
 Performs sampling and conversion from a VDB grid onto a VDB Points attribute. More...
 

Detailed Description

Sample a VDB Grid onto a VDB Points attribute.

Author
Nick Avramoussis, Francisco Gochez, Dan Bailey

Definition in file PointSample.h.