41 #include <AtomsUtils/Globals.h>
42 #include <AtomsUtils/KdTree/Common.h>
43 #include <AtomsUtils/AtomsMath.h>
45 #define Ct_DEFAULT 15.0f
46 #define Ci_DEFAULT 20.0f
47 #define emptyBonus_DEFAULT 0.0f
51 class ATOMSUTILS_EXPORT
SAH {
53 SAH(
float Ct = Ct_DEFAULT,
54 float Ci = Ci_DEFAULT,
55 float emptyBonus = emptyBonus_DEFAULT);
57 float calculateSAH(
const AtomsMath::Box3f &nodeExtent,
char axis,
58 unsigned int nA,
unsigned int nB,
float position)
const;
61 float operator()(
const AtomsMath::Box3f &nodeExtent,
char axis,
62 unsigned int nA,
unsigned int nB,
float position)
const;
67 const float m_emptyBonus;
AtomsCore namespace.
Definition: Base64.h:13