OpenVDB  12.0.0
Static Public Member Functions | List of all members
ISMeanCurvature< DiffScheme2, DiffScheme1 > Struct Template Reference

Compute the mean curvature in index space. More...

#include <openvdb/math/Operators.h>

Static Public Member Functions

template<typename Accessor >
static bool result (const Accessor &grid, const Coord &ijk, typename Accessor::ValueType &alpha, typename Accessor::ValueType &beta)
 Random access version. More...
 
template<typename StencilT >
static bool result (const StencilT &stencil, typename StencilT::ValueType &alpha, typename StencilT::ValueType &beta)
 Stencil access version. More...
 

Detailed Description

template<DDScheme DiffScheme2, DScheme DiffScheme1>
struct openvdb::v12_0::math::ISMeanCurvature< DiffScheme2, DiffScheme1 >

Compute the mean curvature in index space.

Member Function Documentation

static bool result ( const Accessor &  grid,
const Coord ijk,
typename Accessor::ValueType &  alpha,
typename Accessor::ValueType &  beta 
)
inlinestatic

Random access version.

Returns
true if the gradient is nonzero, in which case the mean curvature is returned in two parts, alpha and beta, where alpha is the numerator in ∇ · (∇Φ / |∇Φ|) and beta is |∇Φ|.
static bool result ( const StencilT &  stencil,
typename StencilT::ValueType &  alpha,
typename StencilT::ValueType &  beta 
)
inlinestatic

Stencil access version.

Returns
true if the gradient is nonzero, in which case the mean curvature is returned in two parts, alpha and beta, where alpha is the numerator in ∇ · (∇Φ / |∇Φ|) and beta is |∇Φ|.