11#ifndef OPENVDB_POINTS_RASTERIZE_TRILINEAR_HAS_BEEN_INCLUDED
12#define OPENVDB_POINTS_RASTERIZE_TRILINEAR_HAS_BEEN_INCLUDED
22#include <openvdb/simd/Simd.h>
42template <
typename ValueT,
bool Staggered = true>
49 "Source attribute type must be scalar or Vec3 for staggered rasterization.");
54 template <
typename Po
intDataTreeT>
55 using TreeT =
typename PointDataTreeT::template ValueConverter<ResultT>::Type;
62template <
typename ValueT>
71 template <
typename Po
intDataTreeT>
72 using TreeT =
typename PointDataTreeT::template ValueConverter<ResultT>::Type;
96template <
bool Staggered,
102 const std::string& attribute,
109#include "impl/PointRasterizeTrilinearImpl.h"
Implementation of morphological dilation and erosion.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
Methods for extracting masks from VDB Point grids.
Framework methods for rasterizing PointDataGrid data to Trees.
ValueAccessors are designed to help accelerate accesses into the OpenVDB Tree structures by storing c...
A no-op filter that can be used when iterating over all indices.
Definition IndexIterator.h:52
auto rasterizeTrilinear(const PointDataTreeT &points, const std::string &attribute, const FilterT &filter=NullFilter())
Perform weighted trilinear rasterization of all points within a voxel. This method takes and returns ...
tree::Tree< tree::RootNode< tree::InternalNode< tree::InternalNode< PointDataLeafNode< PointDataIndex32, 3 >, 4 >, 5 > > > PointDataTree
Point index tree configured to match the default VDB configurations.
Definition PointDataGrid.h:68
Definition Exceptions.h:13
General-purpose arithmetic and comparison routines, most of which accept arbitrary value types (or at...
SubT Type
Definition Types.h:372
static const bool IsVec
Definition Types.h:348
static const int Size
Definition Types.h:352
typename T::ValueType ElementType
Definition Types.h:354
static const bool IsScalar
Definition Types.h:351
typename PointDataTreeT::template ValueConverter< ResultT >::Type TreeT
Resulting rasterized TreeType.
Definition PointRasterizeTrilinear.h:72
typename ConvertElementType< ValueT, FltT >::Type ResultT
Resulting rasterized Tree ValueType.
Definition PointRasterizeTrilinear.h:69
Traits for staggered (MAC) trilinear rasterization. This method only works on scalar or Vec3 attribut...
Definition PointRasterizeTrilinear.h:44
math::Vec3< FltT > ResultT
Resulting rasterized Tree ValueType (always Vec3)
Definition PointRasterizeTrilinear.h:52
typename PointDataTreeT::template ValueConverter< ResultT >::Type TreeT
Resulting rasterized TreeType.
Definition PointRasterizeTrilinear.h:55
#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:291