MeshObject.draw_faces

MeshObject.draw_faces(faces=None, color=None, text=None)[source]

Draw the faces of the mesh.

Parameters:
faceslist[int], optional

The faces to include in the drawing. Default is all faces.

colortuple[float, float, float] | compas.colors.Color | dict[int, tuple[float, float, float] | compas.colors.Color], optional

The color of the faces, as either a single color to be applied to all faces, or a color dict, mapping specific faces to specific colors.

textdict[int, str], optional

The text labels for the faces as a text dict, mapping specific faces to specific text labels.

Returns:
list

The identifiers of the objects representing the faces in the visualization context.