Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
AABBTreeBuilder Class Reference

Helper class to build an AABB tree. More...

#include <AABBTreeBuilder.h>

Classes

class  Node
 A node in the tree, contains the AABox for the tree and any child nodes or triangles. More...
 

Public Member Functions

 AABBTreeBuilder (TriangleSplitter &inSplitter, uint inMaxTrianglesPerLeaf=16)
 Constructor.
 
NodeBuild (AABBTreeBuilderStats &outStats)
 Recursively build tree, returns the root node of the tree.
 
const Array< Node > & GetNodes () const
 Get all nodes.
 
const Array< IndexedTriangle > & GetTriangles () const
 Get all triangles.
 

Detailed Description

Helper class to build an AABB tree.

Constructor & Destructor Documentation

◆ AABBTreeBuilder()

AABBTreeBuilder::AABBTreeBuilder ( TriangleSplitter inSplitter,
uint  inMaxTrianglesPerLeaf = 16 
)

Constructor.

Member Function Documentation

◆ Build()

AABBTreeBuilder::Node * AABBTreeBuilder::Build ( AABBTreeBuilderStats outStats)

Recursively build tree, returns the root node of the tree.

◆ GetNodes()

const Array< Node > & AABBTreeBuilder::GetNodes ( ) const
inline

Get all nodes.

◆ GetTriangles()

const Array< IndexedTriangle > & AABBTreeBuilder::GetTriangles ( ) const
inline

Get all triangles.


The documentation for this class was generated from the following files: