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

Go to the source code of this file.

Functions

JPH_NAMESPACE_BEGIN JPH_EXPORT void Indexify (const TriangleList &inTriangles, VertexList &outVertices, IndexedTriangleList &outTriangles, float inVertexWeldDistance=1.0e-4f)
 
JPH_EXPORT void Deindexify (const VertexList &inVertices, const IndexedTriangleList &inTriangles, TriangleList &outTriangles)
 Take a list of indexed triangles and unpack them. More...
 

Function Documentation

◆ Deindexify()

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

Take a list of indexed triangles and unpack them.

◆ Indexify()

JPH_NAMESPACE_BEGIN JPH_EXPORT 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.