mesh_weld

compas.datastructures.mesh_weld(mesh, precision=None, cls=None)[source]

Weld vertices of a mesh within some precision distance.

Parameters:
meshcompas.datastructures.Mesh

A mesh.

precisionint, optional

Precision for converting numbers to strings. Default is TOL.precision.

clsType[compas.datastructures.Mesh], optional

Type of the welded mesh. This defaults to the type of the first mesh in the list.

Returns:
compas.datastructures.Mesh

The welded mesh.