NetworkArtist
-
class
compas_blender.artists.
NetworkArtist
(network)[source] Bases:
compas_blender.artists._artist.BaseArtist
Artist for COMPAS network objects.
- Parameters
network (
compas.datastructures.Network
) – A COMPAS network.settings (dict, optional) – A dict with custom visualisation settings.
- 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.