m3sh.hds.Mesh.
insert_halfedge#
- Mesh.insert_halfedge(face, origin, target)#
Insert face diagonal.
Splits face into two polygonal parts.
- Parameters:
- faceFace
Polygonal face of a mesh.
- originVertex
Origin vertex, incident with face.
- targetVertex
Target vertex, incident with face and different from origin.
- Returns:
- Halfedge
The newly inserted halfedge. The face to its left is equal to face.
- Raises:
- ValueError
In case of invalid input.
- NonManifoldError
If something goes wrong.
Notes
This method cannot be used to split off parts of a mesh’s boundary. Use
add_face()for that.