m3sh.hds.Mesh.

add_face#

Mesh.add_face(face, *args, **kwargs)#

Create and add new face.

Vertex identifiers used in the definition of a face have to refer to existing vertices of the mesh.

Parameters:
facelist[int] or list[Vertex]

Combinatorial face definition.

*args

Variable number of Vertex or int arguments.

**kwargs

Arbitrary number of attribute name and value pairs.

Returns:
Face

The newly created Face instance.