OpenVDB 13.2.0
Loading...
Searching...
No Matches
TrilinearTraits< ValueT, Staggered > Struct Template Reference

Traits for staggered (MAC) trilinear rasterization. This method only works on scalar or Vec3 attribute types and only ever returns a Vec3 tree. It is typically used for velocity rasterization in fluid simulations to avoid the pressure-velocity decoupling problem that occurs on collocated (cell-centered) grids. The resulting Vec3 tree effectively represents the velocity values on the cell faces rather than the cell centers. More...

#include <openvdb/points/PointRasterizeTrilinear.h>

Public Types

using ResultT = math::Vec3<FltT>
 Resulting rasterized Tree ValueType (always Vec3)
template<typename PointDataTreeT>
using TreeT = typename PointDataTreeT::template ValueConverter<ResultT>::Type
 Resulting rasterized TreeType.

Detailed Description

template<typename ValueT, bool Staggered = true>
struct openvdb::v13_2::points::TrilinearTraits< ValueT, Staggered >

Traits for staggered (MAC) trilinear rasterization. This method only works on scalar or Vec3 attribute types and only ever returns a Vec3 tree. It is typically used for velocity rasterization in fluid simulations to avoid the pressure-velocity decoupling problem that occurs on collocated (cell-centered) grids. The resulting Vec3 tree effectively represents the velocity values on the cell faces rather than the cell centers.

Member Typedef Documentation

◆ ResultT

template<typename ValueT, bool Staggered = true>
using ResultT = math::Vec3<FltT>

Resulting rasterized Tree ValueType (always Vec3)

◆ TreeT

template<typename ValueT, bool Staggered = true>
template<typename PointDataTreeT>
using TreeT = typename PointDataTreeT::template ValueConverter<ResultT>::Type

Resulting rasterized TreeType.