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) |
Namespace for sparse field specifics.
bool Sparse::isAnyLess | ( | const Data_T & | left, |
const Data_T & | right | ||
) | [inline] |
Definition at line 517 of file SparseField.h.
{
return (std::abs(left) < right);
}
Definition at line 525 of file SparseField.h.
{
return (std::abs(left.x) < right.x ||
std::abs(left.y) < right.y ||
std::abs(left.z) < right.z );
}
Definition at line 535 of file SparseField.h.
{
return (std::abs(left.x) < right.x ||
std::abs(left.y) < right.y ||
std::abs(left.z) < right.z );
}
Definition at line 545 of file SparseField.h.
{
return (std::abs(left.x) < right.x ||
std::abs(left.y) < right.y ||
std::abs(left.z) < right.z );
}