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_vkeyint

The old vertex key.

new_vkeyint

The new vertex key.

fkeyslist[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.