26 virtual bool Split(
const Range &inTriangles, Range &outLeft, Range &outRight)
override;
30 const uint mMinNumBins;
31 const uint mMaxNumBins;
32 const uint mNumTrianglesPerBin;
42 AABox mBoundsAccumulatedLeft;
43 AABox mBoundsAccumulatedRight;
44 uint mNumTrianglesAccumulatedLeft;
45 uint mNumTrianglesAccumulatedRight;
unsigned int uint
Definition Core.h:309
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
Array< Float3 > VertexList
Definition Float3.h:42
Array< IndexedTriangle > IndexedTriangleList
Definition IndexedTriangle.h:105
std::vector< T, STLAllocator< T > > Array
Definition STLAllocator.h:81
Axis aligned box.
Definition AABox.h:16
Binning splitter approach taken from: Realtime Ray Tracing on GPU with BVH-based Packet Traversal by ...
Definition TriangleSplitterBinning.h:14
virtual bool Split(const Range &inTriangles, Range &outLeft, Range &outRight) override
Definition TriangleSplitterBinning.cpp:20
virtual void GetStats(Stats &outStats) const override
Get stats of splitter.
Definition TriangleSplitterBinning.h:20
TriangleSplitterBinning(const VertexList &inVertices, const IndexedTriangleList &inTriangles, uint inMinNumBins=8, uint inMaxNumBins=128, uint inNumTrianglesPerBin=6)
Constructor.
Definition TriangleSplitterBinning.cpp:11
A class that splits a triangle list into two parts for building a tree.
Definition TriangleSplitter.h:13
Definition TriangleSplitter.h:22
const char * mSplitterName
Definition TriangleSplitter.h:23