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 V3h &left, const V3h &right)
 
template<>
bool isAnyLess (const V3f &left, const V3f &right)
 
template<>
bool isAnyLess (const V3d &left, const V3d &right)
 

Detailed Description

Namespace for sparse field specifics.

Function Documentation

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

Definition at line 757 of file SparseField.h.

758 {
759  return (std::abs(left) < right);
760 }
template<>
bool Sparse::isAnyLess ( const V3h left,
const V3h right 
)
inline

Definition at line 765 of file SparseField.h.

766 {
767  return (std::abs(left.x) < right.x ||
768  std::abs(left.y) < right.y ||
769  std::abs(left.z) < right.z );
770 }
template<>
bool Sparse::isAnyLess ( const V3f left,
const V3f right 
)
inline

Definition at line 775 of file SparseField.h.

776 {
777  return (std::abs(left.x) < right.x ||
778  std::abs(left.y) < right.y ||
779  std::abs(left.z) < right.z );
780 }
template<>
bool Sparse::isAnyLess ( const V3d left,
const V3d right 
)
inline

Definition at line 785 of file SparseField.h.

786 {
787  return (std::abs(left.x) < right.x ||
788  std::abs(left.y) < right.y ||
789  std::abs(left.z) < right.z );
790 }