Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FConvexBuilder
Description
Find edge pairs that are colinear and remove the unnecessary vertex to make a single edge. If we are left with an invalid face (2 verts or less), remove it. NOTE: a vertex in the middle of two colinear edges on one face may still be required by some other face, although if we are lucky those faces would have been merged by the MergeFaces() function, depending on the tolerances used
| Name | MergeColinearEdges |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/CollisionConvexMesh.h |
| Include Path | #include "Chaos/CollisionConvexMesh.h" |
static void MergeColinearEdges
(
TArray < FPlaneType > & InOutPlanes,
TArray < TArray < int32 > > & InOutFaceVertexIndices,
TArray < FVec3Type > & InOutVertices,
FRealType AngleToleranceCos
)