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

◆ isAnyLess() [1/4]

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

Definition at line 517 of file SparseField.h.

518 {
519  return (std::abs(left) < right);
520 }

◆ isAnyLess() [2/4]

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

Definition at line 525 of file SparseField.h.

526 {
527  return (std::abs(left.x) < right.x ||
528  std::abs(left.y) < right.y ||
529  std::abs(left.z) < right.z );
530 }

◆ isAnyLess() [3/4]

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

Definition at line 535 of file SparseField.h.

536 {
537  return (std::abs(left.x) < right.x ||
538  std::abs(left.y) < right.y ||
539  std::abs(left.z) < right.z );
540 }

◆ isAnyLess() [4/4]

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

Definition at line 545 of file SparseField.h.

546 {
547  return (std::abs(left.x) < right.x ||
548  std::abs(left.y) < right.y ||
549  std::abs(left.z) < right.z );
550 }