OpenVDB 13.0.0

Loading...
Searching...
No Matches
MeanCurvature< MapType, DiffScheme2, DiffScheme1 > Struct Template Reference

Compute the mean curvature. More...

`#include <openvdb/math/Operators.h>`

## Static Public Member Functions
template<typename Accessor>
static bool | compute (const MapType &map, const Accessor &grid, const Coord &ijk, double &alpha, double &beta)
| Random access version.
template<typename Accessor>
static Accessor::ValueType | result (const MapType &map, const Accessor &grid, const Coord &ijk)
template<typename Accessor>
static Accessor::ValueType | normGrad (const MapType &map, const Accessor &grid, const Coord &ijk)
template<typename StencilT>
static bool | compute (const MapType &map, const StencilT &stencil, double &alpha, double &beta)
| Stencil access version.
template<typename StencilT>
static StencilT::ValueType | result (const MapType &map, const StencilT stencil)
template<typename StencilT>
static StencilT::ValueType | normGrad (const MapType &map, const StencilT stencil)

## Detailed Description

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
struct openvdb::v13_0::math::MeanCurvature< MapType, DiffScheme2, DiffScheme1 >

Compute the mean curvature.

The mean curvature is returned in two parts, alpha and beta, where alpha is the numerator in ∇ · (∇Φ / |∇Φ|) and beta is |∇Φ|.

## Member Function Documentation

## ◆ compute() [1/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename Accessor>

bool compute | ( | const MapType & | map,
|  | const Accessor & | grid,
|  | const Coord & | ijk,
|  | double & | alpha,
|  | double & | beta )
| inline static

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 |∇Φ|.

## ◆ compute() [2/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename StencilT>

bool compute | ( | const MapType & | map,
|  | const StencilT & | stencil,
|  | double & | alpha,
|  | double & | beta )
| inline static

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 |∇Φ|.

## ◆ normGrad() [1/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename Accessor>

Accessor::ValueType normGrad | ( | const MapType & | map,
|  | const Accessor & | grid,
|  | const Coord & | ijk )
| inline static

## ◆ normGrad() [2/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename StencilT>

StencilT::ValueType normGrad | ( | const MapType & | map,
|  | const StencilT | stencil )
| inline static

## ◆ result() [1/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename Accessor>

Accessor::ValueType result | ( | const MapType & | map,
|  | const Accessor & | grid,
|  | const Coord & | ijk )
| inline static

## ◆ result() [2/2]

template<typename MapType, DDScheme DiffScheme2, DScheme DiffScheme1>
template<typename StencilT>

StencilT::ValueType result | ( | const MapType & | map,
|  | const StencilT | stencil )
| inline static