NetworkObject.draw

NetworkObject.draw(nodes=None, edges=None, nodecolor=None, edgecolor=None)[source]

Draw the network.

Parameters:
nodeslist[hashable], optional

A list of node identifiers. Default is None, in which case all nodes are drawn.

edgeslist[tuple[hashable, hashable]], optional

A list of edge keys (as uv pairs) identifying which edges to draw. The default is None, in which case all edges are drawn.

nodecolorcompas.colors.Color | dict[hashable, compas.colors.Color], optional

The color specification for the nodes.

edgecolorcompas.colors.Color | dict[tuple[hashable, hashable], compas.colors.Color], optional

The color specification for the edges.

Returns:
list[bpy.types.Object]

The objects created in Blender.