Field3D

Namespace for sparse field specifics. More...

Classes

struct  CheckAllEqual
 Checks if all the values in the SparseBlock are equal. Used by SparseField::releaseBlocks(). More...
 
struct  CheckMaxAbs
 Checks if all the absolute values in the SparseBlock are greater than some number. Useful for making narrow band levelsets Used by SparseField::releaseBlocks(). More...
 
class  SparseBlock
 Storage for one individual block of a SparseField. More...
 

Functions

template<typename Data_T >
bool isAnyLess (const Data_T &left, const Data_T &right)
 
template<>
bool isAnyLess (const V3d &left, const V3d &right)
 
template<>
bool isAnyLess (const V3f &left, const V3f &right)
 
template<>
bool isAnyLess (const V3h &left, const V3h &right)
 

Detailed Description

Namespace for sparse field specifics.

Function Documentation

◆ isAnyLess() [1/4]

template<typename Data_T >
bool Sparse::isAnyLess ( const Data_T & left,
const Data_T & right )
inline

Definition at line 770 of file SparseField.h.

771{
772 return (std::abs(left) < right);
773}
#define FIELD3D_MTX_T
Definition StdMathLib.h:99

References FIELD3D_MTX_T.

◆ isAnyLess() [2/4]

template<>
bool Sparse::isAnyLess ( const V3h & left,
const V3h & right )
inline

Definition at line 778 of file SparseField.h.

779{
780 return (std::abs(left.x) < right.x ||
781 std::abs(left.y) < right.y ||
782 std::abs(left.z) < right.z );
783}

References FIELD3D_MTX_T.

◆ isAnyLess() [3/4]

template<>
bool Sparse::isAnyLess ( const V3f & left,
const V3f & right )
inline

Definition at line 788 of file SparseField.h.

789{
790 return (std::abs(left.x) < right.x ||
791 std::abs(left.y) < right.y ||
792 std::abs(left.z) < right.z );
793}

References FIELD3D_MTX_T.

◆ isAnyLess() [4/4]

template<>
bool Sparse::isAnyLess ( const V3d & left,
const V3d & right )
inline

Definition at line 798 of file SparseField.h.

799{
800 return (std::abs(left.x) < right.x ||
801 std::abs(left.y) < right.y ||
802 std::abs(left.z) < right.z );
803}

References FIELD3D_MTX_T.