Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/kDOP.h |
Include |
#include "kDOP.h" |
FBox SplitTriangleList
(
int32 Start,
int32 NumTris,
TArray< FkDOPBuildCollisionTriangle< KDOP_IDX_TYPE > > & BuildTriangles,
TChunkedArray< FTriangleSOA > & SOATriangles,
TChunkedArray< NodeType > & Nodes
)
Determines if the node is a leaf or not. If it is not a leaf, it subdivides the list of triangles again adding two child nodes and splitting them on the mean (splatter method). Otherwise it sets up the triangle information.
bounding box for this node
Parameter |
Description |
---|---|
Start |
The triangle index to start processing with |
NumTris |
The number of triangles to process |
BuildTriangles |
The list of triangles to use for the build process |
Nodes |
The list of nodes in this tree |