10 #ifndef OPENVDB_POINTS_POINT_SAMPLE_HAS_BEEN_INCLUDED
11 #define OPENVDB_POINTS_POINT_SAMPLE_HAS_BEEN_INCLUDED
21 #include <type_traits>
37 template<
typename PointDataGridT,
typename SourceGridT,
38 typename FilterT = NullFilter,
typename InterrupterT = util::NullInterrupter>
40 const SourceGridT& sourceGrid,
41 const Name& targetAttribute =
"",
42 const FilterT&
filter = NullFilter(),
43 InterrupterT*
const interrupter =
nullptr);
54 template<
typename PointDataGridT,
typename SourceGridT,
55 typename FilterT = NullFilter,
typename InterrupterT = util::NullInterrupter>
56 inline void boxSample( PointDataGridT& points,
57 const SourceGridT& sourceGrid,
58 const Name& targetAttribute =
"",
59 const FilterT&
filter = NullFilter(),
60 InterrupterT*
const interrupter =
nullptr);
71 template<
typename PointDataGridT,
typename SourceGridT,
72 typename FilterT = NullFilter,
typename InterrupterT = util::NullInterrupter>
74 const SourceGridT& sourceGrid,
75 const Name& targetAttribute =
"",
76 const FilterT&
filter = NullFilter(),
77 InterrupterT*
const interrupter =
nullptr);
86 template<
typename ValueT,
typename SamplerT,
typename AccessorT>
87 inline ValueT
sample(
const AccessorT& accessor,
const Vec3d&
position)
const;
107 template<
typename PointDataGridT,
typename SourceGridT,
typename TargetValueT =
DummySampleType,
111 PointDataGridT& points,
112 const SourceGridT& sourceGrid,
113 const Name& targetAttribute,
116 InterrupterT*
const interrupter =
nullptr,
117 const bool threaded =
true);
125 #endif // OPENVDB_POINTS_POINT_SAMPLE_HAS_BEEN_INCLUDED
GLdouble GLdouble GLint GLint const GLdouble * points
#define OPENVDB_USE_VERSION_NAMESPACE
void pointSample(PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute, const FilterT &filter, InterrupterT *const interrupter)
Performs closest point sampling from a VDB grid onto a VDB Points attribute.
A no-op filter that can be used when iterating over all indices.
Base class for interrupters.
void boxSample(PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute, const FilterT &filter, InterrupterT *const interrupter)
Performs tri-linear sampling from a VDB grid onto a VDB Points attribute.
GLdouble GLdouble GLint GLint order
void sampleGrid(size_t order, PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute, const FilterT &filter, const SamplerT &sampler, InterrupterT *const interrupter, const bool threaded)
Performs sampling and conversion from a VDB grid onto a VDB Points attribute.
Point attribute manipulation in a VDB Point Grid.
SIM_API const UT_StringHolder position
void quadraticSample(PointDataGridT &points, const SourceGridT &sourceGrid, const Name &targetAttribute, const FilterT &filter, InterrupterT *const interrupter)
Performs tri-quadratic sampling from a VDB grid onto a VDB Points attribute.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
ValueT sample(const AccessorT &accessor, const Vec3d &position) const
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter