NetworkArtist
- class compas_ghpython.artists.NetworkArtist(*args, **kwargs)[source]
Bases:
compas_ghpython.artists.artist.GHArtist,compas.artists.networkartist.NetworkArtistArtist for drawing network data structures.
- Parameters
network (
compas.datastructures.Network) – A COMPAS network.
Methods
build(item, **kwargs)Build an artist corresponding to the item type.
build_as(item, artist_type, **kwargs)clear()draw()Draw the entire network with default color settings.
draw_collection(collection)draw_edges([edges, color])Draw a selection of edges.
draw_nodes([nodes, color])Draw a selection of nodes.
get_artist_cls(data, **kwargs)redraw()register(item_type, artist_type)