mesh_substitute_vertex_in_faces

compas.datastructures.mesh_substitute_vertex_in_faces(mesh, old_vkey, new_vkey, fkeys=None)[source]

Substitute in a mesh a vertex by another one. In all faces by default or in a given set of faces.

Parameters
  • old_vkey (int) – The old vertex key.

  • new_vkey (int) – The new vertex key.

  • fkeys (list[int], optional) – List of face keys where to subsitute the old vertex by the new one. Default is to subsitute in all faces.

Returns

list[int] – The list of modified faces.