Mesh.insert_vertex

Mesh.insert_vertex(fkey, key=None, xyz=None, return_fkeys=False)[source]

Insert a vertex in the specified face.

Parameters
  • fkey (int) – The key of the face in which the vertex should be inserted.

  • key (int, optional) – The key to be used to identify the inserted vertex.

  • xyz (list[float], optional) – Specific XYZ coordinates for the inserted vertex.

  • return_fkeys (bool, optional) – If True, return the identifiers of the newly created faces in addition to the identifier of the inserted vertex.

Returns

int | tuple[int, list[int]] – If return_fkeys is False, the key of the inserted vertex. If return_fkeys is True, the key of the newly created vertex and a list with the newly created faces.