NetworkArtist

class compas_blender.artists.NetworkArtist(network)[source]

Bases: compas_blender.artists._artist.BaseArtist

Artist for COMPAS network objects.

Parameters
Attributes
  • network (compas.datastructures.Network) – The COMPAS network associated with the artist.

  • settings (dict) – Default settings for color, scale, tolerance, …

Methods

build(item, **kwargs)

Build an artist corresponding to the item type.

clear()

Delete all objects created by the artist.

draw()

Draw the network.

draw_edges([edges, color])

Draw a selection of edges.

draw_nodes([nodes, color])

Draw a selection of nodes.

redraw()

Trigger a redraw.

register(item_type, artist_type)

Register a type of COMPAS object with a Blender artist.