Block.insert_vertex

Block.insert_vertex(fkey, key=None, xyz=None, return_fkeys=False)

Insert a vertex in the specified face.

Parameters:
fkeyint

The key of the face in which the vertex should be inserted.

keyint, optional

The key to be used to identify the inserted vertex.

xyzlist[float], optional

Specific XYZ coordinates for the inserted vertex.

return_fkeysbool, 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.