trimesh_swap_edge

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

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

Parameters
  • mesh (Mesh) – Instance of mesh.

  • u (int) – The key of one of the vertices of the edge.

  • v (int) – The key of the other vertex of the edge.

Returns

None