trimesh_swap_edge

compas.datastructures.trimesh_swap_edge(mesh, edge, allow_boundary=True)[source]

Replace an edge of the mesh by an edge connecting the opposite vertices of the adjacent faces.

Parameters:
meshcompas.datastructures.Mesh

Instance of mesh.

edgetuple[int, int]

The identifier of the edge to swap.

Returns:
None