delete_vertex

Mesh.delete_vertex(vertex, fill=None)[source]

Delete vertex.

Delete vertex and optionally fill the formed hole.

Parameters:
  • vertex (Vertex or int) – Vertex identifier.

  • fill (str, optional) – Pass ‘tri’ to triangulate the hole or ‘ngon’ to turn it into a polygonal face.

Raises:

NonManifoldError – If vertex deletion was not possible.

Returns:

The faces used to patch the hole. None if hole filling was not requested.

Return type:

Face or list[Face]