OpenVDB: openvdb/points/PointSample.h File Reference

OpenVDB 12.1.1

Loading...
Searching...
No Matches
PointSample.h File Reference

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

`#include <openvdb/util/NullInterrupter.h>`
`#include <openvdb/thread/Threading.h>`
`#include <openvdb/tools/Interpolation.h>`
`#include <openvdb/util/Assert.h>`
`#include "PointDataGrid.h"`
`#include "PointAttribute.h"`
`#include <sstream>`
`#include <type_traits>`
`#include "impl/PointSampleImpl.h"`

Go to the source code of this file.

## Classes
struct | SampleWithRounding
struct | DummySampleType

## Namespaces
namespace | openvdb
namespace | openvdb::v12_1
namespace | openvdb::v12_1::points

## Functions
template<typename PointDataGridT, typename SourceGridT, typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
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.
template<typename PointDataGridT, typename SourceGridT, typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
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.
template<typename PointDataGridT, typename SourceGridT, typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
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.
template<typename PointDataGridT, typename SourceGridT, typename TargetValueT = DummySampleType, typename SamplerT = SampleWithRounding, typename FilterT = NullFilter, typename InterrupterT = util::NullInterrupter>
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.

## Detailed Description

Sample a VDB Grid onto a VDB Points attribute.

Author
  Nick Avramoussis, Francisco Gochez, Dan Bailey