MOAB: Mesh Oriented datABase  (version 5.2.1)
moab::BVHTree::Split_comparator Class Reference

Public Member Functions

bool operator() (const SplitData &a, const SplitData &b) const

Private Member Functions

double objective (const SplitData &a) const

Detailed Description

Definition at line 163 of file BVHTree.hpp.


Member Function Documentation

double moab::BVHTree::Split_comparator::objective ( const SplitData a) const [inline, private]

Definition at line 165 of file BVHTree.hpp.

References moab::BVHTree::SplitData::Lmax, moab::BVHTree::SplitData::nl, moab::BVHTree::SplitData::nr, and moab::BVHTree::SplitData::Rmin.

Referenced by operator()().

        {
            return a.Lmax * a.nl - a.Rmin * a.nr;
        }
bool moab::BVHTree::Split_comparator::operator() ( const SplitData a,
const SplitData b 
) const [inline]

Definition at line 171 of file BVHTree.hpp.

References objective().

        {
            return objective( a ) < objective( b );
        }

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines