Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Indexify.cpp File Reference

Functions

void Indexify (const TriangleList &inTriangles, VertexList &outVertices, IndexedTriangleList &outTriangles, float inVertexWeldDistance)
 
void Deindexify (const VertexList &inVertices, const IndexedTriangleList &inTriangles, TriangleList &outTriangles)
 Take a list of indexed triangles and unpack them. More...
 

Function Documentation

◆ Deindexify()

void Deindexify ( const VertexList inVertices,
const IndexedTriangleList inTriangles,
TriangleList outTriangles 
)

Take a list of indexed triangles and unpack them.

◆ Indexify()

void Indexify ( const TriangleList inTriangles,
VertexList outVertices,
IndexedTriangleList outTriangles,
float  inVertexWeldDistance = 1.0e-4f 
)

Take a list of triangles and get the unique set of vertices and use them to create indexed triangles. Vertices that are less than inVertexWeldDistance apart will be combined to a single vertex.