OpenVDB: PointIndexFilter< PointArray, TreeType > Struct Template Reference

OpenVDB 10.0.1

Public Types | Public Member Functions | List of all members
PointIndexFilter< PointArray, TreeType > Struct Template Reference

`#include <openvdb/tools/PointIndexGrid.h>`

## Public Types
using | PosType = typename PointArray::PosType
using | ScalarType = typename PosType::value_type
using | ConstAccessor = tree::ValueAccessor< const TreeType >

## Public Member Functions
| PointIndexFilter (const PointArray &points, const TreeType &tree, const math::Transform &xform)
| Constructor. More...
| PointIndexFilter (const PointIndexFilter &rhs)
| Thread safe copy constructor. More...
template<typename FilterType >
void | searchAndApply (const PosType &center, ScalarType radius, FilterType &op)
| Perform a radial search query and apply the given filter operator to the selected points. More...

## Member Typedef Documentation

## ◆ ConstAccessor

using ConstAccessor = tree::ValueAccessor<const TreeType>

## ◆ PosType

using PosType = typename PointArray::PosType

## ◆ ScalarType

using ScalarType = typename PosType::value_type

## Constructor & Destructor Documentation

## ◆ PointIndexFilter() [1/2]

PointIndexFilter | ( | const PointArray & | points,
|  | const TreeType & | tree,
|  | const math::Transform & | xform
| ) |  |
| inline

Constructor.

Parameters

  points | world-space point array conforming to the PointArray interface
  tree | a point index tree
  xform | linear, uniform-scale transform (i.e., cubical voxels)

## ◆ PointIndexFilter() [2/2]

PointIndexFilter | ( | const PointIndexFilter< PointArray, TreeType > & | rhs | ) |
| inline

Thread safe copy constructor.

## Member Function Documentation

## ◆ searchAndApply()

void searchAndApply | ( | const PosType & | center,
|  | ScalarType | radius,
|  | FilterType & | op
| ) |  |
| inline

Perform a radial search query and apply the given filter operator to the selected points.

Parameters

  center | world-space center
  radius | world-space radius
  op | custom filter operator (see the FilterType example for interface details)