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

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.

Inherited Methods

build(item, **kwargs)

Build an artist corresponding to the item type.

redraw()

Trigger a redraw.

register(item_type, artist_type)

Register a type of COMPAS object with a Blender artist.