39 if (ax > bx)
return true;
bool operator()(Primitive *a, Primitive *b)
KDTree primitive comparator functor.
Definition: KDTreePrimitiveComparator.h:36
KDTreePrimitiveComparator(int axis)
Constructor for KDTree primitive comparator.
Definition: KDTreePrimitiveComparator.h:22
virtual glm::dvec3 getCentroid()=0
Obtain the primitive centroid.
KDTree primitive comparator.
Definition: KDTreePrimitiveComparator.h:8
Abstract class defining the common behavior for all primitives.
Definition: Primitive.h:20
int axis
Index of axis considered for the comparison.
Definition: KDTreePrimitiveComparator.h:14