Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
EPAConvexHullBuilder::TriangleFactory Class Reference

Factory that creates triangles in a fixed size buffer. More...

#include <EPAConvexHullBuilder.h>

Inheritance diagram for EPAConvexHullBuilder::TriangleFactory:
NonCopyable

Public Member Functions

void Clear ()
 Return all triangles to the free pool.
 
TriangleCreateTriangle (int inIdx0, int inIdx1, int inIdx2, const Vec3 *inPositions)
 Allocate a new triangle with 3 indexes.
 
void FreeTriangle (Triangle *inT)
 Free a triangle.
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Factory that creates triangles in a fixed size buffer.

Member Function Documentation

◆ Clear()

void EPAConvexHullBuilder::TriangleFactory::Clear ( )
inline

Return all triangles to the free pool.

◆ CreateTriangle()

Triangle * EPAConvexHullBuilder::TriangleFactory::CreateTriangle ( int  inIdx0,
int  inIdx1,
int  inIdx2,
const Vec3 inPositions 
)
inline

Allocate a new triangle with 3 indexes.

◆ FreeTriangle()

void EPAConvexHullBuilder::TriangleFactory::FreeTriangle ( Triangle inT)
inline

Free a triangle.


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