28 virtual bool Split(
const Range &inTriangles, Range &outLeft, Range &outRight)
override;
32 Vec3 GetCentroidForGroup(
uint inFirstTriangleInGroup);
36 const uint mMinNumBins;
37 const uint mMaxNumBins;
38 const uint mNumTrianglesPerBin;
48 AABox mBoundsAccumulatedLeft;
49 AABox mBoundsAccumulatedRight;
50 uint mNumTrianglesAccumulatedLeft;
51 uint mNumTrianglesAccumulatedRight;
#define JPH_EXPORT
Definition Core.h:271
unsigned int uint
Definition Core.h:481
#define JPH_NAMESPACE_END
Definition Core.h:414
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
Axis aligned box.
Definition AABox.h:16
Definition TriangleSplitterFixedLeafSize.h:15
virtual void GetStats(Stats &outStats) const override
Get stats of splitter.
Definition TriangleSplitterFixedLeafSize.h:21
A class that splits a triangle list into two parts for building a tree.
Definition TriangleSplitter.h:14
virtual bool Split(const Range &inTriangles, Range &outLeft, Range &outRight)=0
Definition TriangleSplitter.h:23
int mLeafSize
Definition TriangleSplitter.h:25
const char * mSplitterName
Definition TriangleSplitter.h:24