VolMeshObject.draw_cells

VolMeshObject.draw_cells(cells=None, color=None, text=None)[source]

Draw the cells of the mesh.

Parameters:
cellslist[int], optional

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

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

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

textdict[int, str], optional

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

Returns:
list

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