insert_halfedge
- Mesh.insert_halfedge(face, origin, target)[source]
Insert face diagonal.
Splits face into two polygonal parts.
- Parameters:
- Raises:
ValueError – In case of invalid input.
NonManifoldError – If something goes wrong.
- Returns:
The newly inserted halfedge. The face to its left is equal to face.
- Return type:
Note
This method cannot be used to split off parts of a mesh’s boundary. Use
add_face()
for that.