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 (hashable) – The old vertex key.

  • new_vkey (hashable) – The new vertex key.

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

Returns

fkeys (list) – The list of modified faces.

Examples

>>>