NetworkArtist

class compas_ghpython.artists.NetworkArtist(*args, **kwargs)[source]

Bases: compas_ghpython.artists.artist.GHArtist, compas.artists.networkartist.NetworkArtist

Artist 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()

clear_edges()

clear_nodes()

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.

redraw()

register(item_type, artist_type)