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 (compas.datastructures.Mesh) – Instance of mesh.

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

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

Returns

None