OpenVDB 14.0.0
Loading...
Searching...
No Matches
PointRasterizeTrilinear.h File Reference

Weighted trilinear rasterization of point data. More...

#include <openvdb/openvdb.h>
#include <openvdb/Types.h>
#include <openvdb/Grid.h>
#include <openvdb/math/Math.h>
#include <openvdb/math/Transform.h>
#include <openvdb/tools/Morphology.h>
#include <openvdb/tree/ValueAccessor.h>
#include <openvdb/util/Assert.h>
#include <openvdb/simd/Simd.h>
#include "PointDataGrid.h"
#include "PointMask.h"
#include "PointTransfer.h"
#include <string>
#include "impl/PointRasterizeTrilinearImpl.h"

Go to the source code of this file.

Classes

struct  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. More...
struct  TrilinearTraits< ValueT, false >
 Traits for collocated, cell-centered rasterization. Work for any scalar, vector or matrix attribute. Note that integer values are interpolated at their respective floating point precision and returned as trees at that precision. More...

Namespaces

namespace  openvdb
namespace  openvdb::v14_0
namespace  openvdb::v14_0::points

Functions

template<bool Staggered, typename ValueT, typename FilterT = NullFilter, typename PointDataTreeT = PointDataTree>
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 a tree i.e. ignores grid transformations.

Detailed Description

Weighted trilinear rasterization of point data.

Author
Nick Avramoussis