10 #ifndef OPENVDB_POINTS_POINT_MASK_HAS_BEEN_INCLUDED 11 #define OPENVDB_POINTS_POINT_MASK_HAS_BEEN_INCLUDED 20 #include <tbb/combinable.h> 22 #include <type_traits> 34 template <
typename PointDataTreeT,
35 typename MaskTreeT =
typename PointDataTreeT::template ValueConverter<bool>::Type,
36 typename FilterT = NullFilter>
37 inline typename std::enable_if<std::is_base_of<TreeBase, PointDataTreeT>::value &&
38 std::is_same<typename MaskTreeT::ValueType, bool>::value,
typename MaskTreeT::Ptr>::type
40 const FilterT& filter = NullFilter(),
48 template <
typename PointDataGridT,
49 typename MaskGridT =
typename PointDataGridT::template ValueConverter<bool>::Type,
50 typename FilterT = NullFilter>
51 inline typename std::enable_if<std::is_base_of<GridBase, PointDataGridT>::value &&
52 std::is_same<typename MaskGridT::ValueType, bool>::value,
typename MaskGridT::Ptr>::type
54 const FilterT& filter = NullFilter(),
63 template <
typename PointDataGridT,
64 typename MaskT =
typename PointDataGridT::template ValueConverter<bool>::Type,
65 typename FilterT = NullFilter>
66 inline typename std::enable_if<std::is_same<typename MaskT::ValueType, bool>::value,
67 typename MaskT::Ptr>::type
69 const openvdb::math::Transform& transform,
70 const FilterT& filter = NullFilter(),
76 template <
typename LeafT>
77 void reset(LeafT&,
size_t = 0) { }
79 template <
typename IterT>
80 void apply(Vec3d&, IterT&)
const { }
85 template <
typename DeformerT>
88 static const bool IndexSpace =
false;
97 #endif // OPENVDB_POINTS_POINT_MASK_HAS_BEEN_INCLUDED
Index filters primarily designed to be used with a FilterIndexIter.
std::enable_if< std::is_same< typename MaskT::ValueType, bool >::value, typename MaskT::Ptr >::type convertPointsToMask(const PointDataGridT &grid, const openvdb::math::Transform &transform, const FilterT &filter=NullFilter(), bool threaded=true)
Extract a Mask Grid from a Point Data Grid using a new transform.
Definition: PointMaskImpl.h:335
Definition: Exceptions.h:13
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
#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