This is a special 19-point stencil that supports optimal fifth-order WENO upwinding, second-order central differencing, Laplacian, and zero-crossing test.
More...
#include <Stencils.h>
Inherits BaseStencil< GridType, WenoStencil< GridType > >.
|
static const int | SIZE = 19 |
|
template<typename GridType>
class openvdb::v0_104_0::math::WenoStencil< GridType >
This is a special 19-point stencil that supports optimal fifth-order WENO upwinding, second-order central differencing, Laplacian, and zero-crossing test.
- Note
- For optimal random access performance this class includes its own grid accessor.
Return the coordinates of the center point of the stencil.
const Coord& getCenterCoord |
( |
| ) |
const |
|
inlineinherited |
Return the coordinates of the center point of the stencil.
Return the value at the center of the stencil.
ValueType getValue |
( |
unsigned int |
pos = 0 | ) |
const |
|
inlineinherited |
Return the value from the stencil buffer with linear offset pos.
The default (pos = 0) corresponds to the center point of the stencil.
Return the value at the specified location relative to the center of the stencil.
Return the optimal fifth-order upwind gradient corresponding to the direction V.
- Note
- This method should not be called until the stencil buffer has been populated via a call to moveTo(ijk).
Return the gradient computed at the previously buffered location by second-order central differencing.
- Note
- This method should not be called until the stencil buffer has been populated via a call to moveTo(ijk).
Return true if the center of the stencil intersects the iso-contour specified by the isoValue
Return the Laplacian computed at the previously buffered location by second-order central differencing.
- Note
- This method should not be called until the stencil buffer has been populated via a call to moveTo(ijk).
Return the largest value in the stencil buffer.
Return the mean value of the current stencil.
Return the median value of the current stencil.
Return the smallest value in the stencil buffer.
void moveTo |
( |
const Coord & |
ijk | ) |
|
|
inlineinherited |
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors.
Initialize the stencil buffer with the values of voxel (x, y, z) and its neighbors.
- Note
- This version is slightly faster than the one above, since the center voxel's value is read directly from the iterator.
Return the norm-square of the WENO upwind gradient (computed via WENO upwinding and Gudonov's scheme) at the previously buffered location.
- Note
- This method should not be called until the stencil buffer has been populated via a call to moveTo(ijk).
Return value at specified the linear off pos.
Set the value at the specified location relative to the center of the stencil.
Return the size of the stencil buffer.
bool zeroCrossing |
( |
| ) |
const |
|
inline |
Return true
if the sign of the value at the center point of the stencil differs from the sign of any of its six nearest neighbors
GridType::ConstAccessor mCache |
|
protectedinherited |
The documentation for this class was generated from the following file: