split_halfedge

Mesh.split_halfedge(halfedge, point=None, triangulate=True)[source]

Split halfedge.

Subdivides an edge by inserting a new vertex. The resulting polygonal faces to the left and right of the edge are triangulated on request.

Parameters:
  • halfedge (Halfedge) – Halfedge to split.

  • point (array_like, optional) – Coordinates of the inserted vertex. By default the halfedges’ midpoint is used.

  • triangulate (bool, optional) – Triangle fan like triangulation of neighboring faces.

Returns:

The newly inserted vertex.

Return type:

Vertex