C4 Engine
C4 Engine API Documentation

Mesh::WeldMesh

Defined in:  C4Mesh.h
Welds the surfaces a mesh together.
Prototype

void WeldMesh(float epsilon);

Parameters
epsilon The distance below which vertices are forced to coincide.
Description
The WeldMesh function searches for pairs of vertices that are within the distance epsilon of each other, but belong to different surfaces. When such a pair is found, one of the vertices is moved so that it coincides exactly with the other vertex in the pair. This operation welds the boundaries between surfaces together.
See Also

Mesh::MendMesh

Mesh::UnifyMesh