HDK
|
#include <UT_VoxelArray.h>
Public Member Functions | |
UT_VoxelProbeCube () | |
~UT_VoxelProbeCube () | |
void | setConstCubeArray (const UT_VoxelArray< T > *vox) |
void | setConstPlusArray (const UT_VoxelArray< T > *vox) |
SYS_FORCE_INLINE T | getValue (int x, int y, int z) const |
SYS_FORCE_INLINE T | getValue (const UT_Vector3I &offset) const |
template<typename S > | |
bool | setIndexCube (UT_VoxelArrayIterator< S > &vit) |
template<typename S > | |
bool | setIndexCube (UT_VoxelTileIterator< S > &vit) |
bool | setIndexCube (int x, int y, int z) |
template<typename S > | |
bool | setIndexPlus (UT_VoxelArrayIterator< S > &vit) |
template<typename S > | |
bool | setIndexPlus (UT_VoxelTileIterator< S > &vit) |
bool | setIndexPlus (int x, int y, int z) |
UT_Vector3 | gradient () const |
fpreal64 | curvature (const UT_Vector3 &invvoxelsize) const |
fpreal64 | laplacian (const UT_Vector3 &invvoxelsize) const |
Static Protected Member Functions | |
static void | rotateLines (UT_VoxelProbe< T, true, false, false > &ym, UT_VoxelProbe< T, true, false, false > &y0, UT_VoxelProbe< T, true, false, false > &yp) |
Protected Attributes | |
UT_VoxelProbe< T, true, false, false > | myLines [3][3] |
bool | myValid |
int | myX |
int | myY |
int | myZ |
int | myMinValidX |
Half inclusive [,) range of valid x queries for current cache. More... | |
int | myMaxValidX |
Definition at line 82 of file UT_VoxelArray.h.
UT_VoxelProbeCube< T >::UT_VoxelProbeCube | ( | ) |
VoxelProbeCube functions
Definition at line 8589 of file UT_VoxelArray.C.
UT_VoxelProbeCube< T >::~UT_VoxelProbeCube | ( | ) |
Definition at line 8595 of file UT_VoxelArray.C.
fpreal64 UT_VoxelProbeCube< T >::curvature | ( | const UT_Vector3 & | invvoxelsize | ) | const |
Computes the central difference curvature using the given inverse voxelsize (ie, 1/voxelsize) at this point. Requires CubeArray.
Definition at line 8796 of file UT_VoxelArray.C.
|
inline |
Allows you to query +/-1 in each direction. In cube update, all are valid. In plus update, only one of x y and z may be non zero.
Definition at line 2413 of file UT_VoxelArray.h.
|
inline |
Definition at line 2424 of file UT_VoxelArray.h.
|
inline |
Computes central difference gradient, does not scale by the step size (which is twice voxelsize) Requires PlusArray
Definition at line 2448 of file UT_VoxelArray.h.
fpreal64 UT_VoxelProbeCube< T >::laplacian | ( | const UT_Vector3 & | invvoxelsize | ) | const |
Computes the laplacian, again with a given 1/voxelsize. Requires PlusArray
Definition at line 8880 of file UT_VoxelArray.C.
|
staticprotected |
Does an rotation of our cache lines, ym becomes y0 and y0 becomes yp, so further queries with y+1 will be cache hits for 2 out of 3.
Definition at line 8908 of file UT_VoxelArray.C.
void UT_VoxelProbeCube< T >::setConstCubeArray | ( | const UT_VoxelArray< T > * | vox | ) |
Definition at line 8601 of file UT_VoxelArray.C.
void UT_VoxelProbeCube< T >::setConstPlusArray | ( | const UT_VoxelArray< T > * | vox | ) |
This coudl be 0,0, but by keeping it the full range we ensure it is legal to rotate when we do a +1
Definition at line 8621 of file UT_VoxelArray.C.
|
inline |
Definition at line 2430 of file UT_VoxelArray.h.
|
inline |
Definition at line 2433 of file UT_VoxelArray.h.
bool UT_VoxelProbeCube< T >::setIndexCube | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 8639 of file UT_VoxelArray.C.
|
inline |
Definition at line 2438 of file UT_VoxelArray.h.
|
inline |
Definition at line 2441 of file UT_VoxelArray.h.
bool UT_VoxelProbeCube< T >::setIndexPlus | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 8728 of file UT_VoxelArray.C.
|
protected |
Definition at line 2469 of file UT_VoxelArray.h.
|
protected |
Definition at line 2475 of file UT_VoxelArray.h.
|
protected |
Half inclusive [,) range of valid x queries for current cache.
Definition at line 2475 of file UT_VoxelArray.h.
|
protected |
Cached look up position. myValid stores if they are valid values or not
Definition at line 2472 of file UT_VoxelArray.h.
|
protected |
Definition at line 2473 of file UT_VoxelArray.h.
|
protected |
Definition at line 2473 of file UT_VoxelArray.h.
|
protected |
Definition at line 2473 of file UT_VoxelArray.h.