10#ifndef OPENVDB_POINTS_POINT_SAMPLE_HAS_BEEN_INCLUDED
11#define OPENVDB_POINTS_POINT_SAMPLE_HAS_BEEN_INCLUDED
38template<
typename PointDataGridT,
typename SourceGridT,
39 typename FilterT = NullFilter,
typename InterrupterT = util::NullInterrupter>
41 const SourceGridT& sourceGrid,
42 const Name& targetAttribute =
"",
44 InterrupterT*
const interrupter =
nullptr);
55template<
typename PointDataGridT,
typename SourceGridT,
58 const SourceGridT& sourceGrid,
59 const Name& targetAttribute =
"",
61 InterrupterT*
const interrupter =
nullptr);
72template<
typename PointDataGridT,
typename SourceGridT,
75 const SourceGridT& sourceGrid,
76 const Name& targetAttribute =
"",
78 InterrupterT*
const interrupter =
nullptr);
87 template<
typename ValueT,
typename SamplerT,
typename AccessorT>
88 inline ValueT
sample(
const AccessorT& accessor,
const Vec3d& position)
const;
108template<
typename PointDataGridT,
typename SourceGridT,
typename TargetValueT =
DummySampleType,
113 const SourceGridT& sourceGrid,
114 const Name& targetAttribute,
117 InterrupterT*
const interrupter =
nullptr,
118 const bool threaded =
true);
124#include "impl/PointSampleImpl.h"
Point attribute manipulation in a VDB Point Grid.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
A no-op filter that can be used when iterating over all indices.
Definition IndexIterator.h:52
Vec3< double > Vec3d
Definition Vec3.h:665
Definition AttributeArray.h:42
void 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.
void 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.
void 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.
void 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.
std::string Name
Definition Name.h:19
Definition Exceptions.h:13
Definition PointSample.h:93
Definition PointSample.h:86
ValueT sample(const AccessorT &accessor, const Vec3d &position) const
Base class for interrupters.
Definition NullInterrupter.h:26
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218