NetworkObject
- class compas_rhino.objects.NetworkObject(network, scene=None, name=None, layer=None, visible=True, settings=None)[source]
Bases:
compas_rhino.objects._object.BaseObjectClass for representing COMPAS networkes in Rhino.
- Parameters
network (
compas.datastructures.Network) – A network data structure.scene (
compas.scenes.Scene, optional) – A scene object.name (str, optional) – The name of the object.
layer (str, optional) – The layer for drawing.
visible (bool, optional) – Toggle for the visibility of the object.
settings (dict, optional) – A dictionary of settings.
Methods
build(item, **kwargs)clear()Clear all previously created Rhino objects.
Clear the layer of the object.
draw()Draw the object representing the network.
modify()Update the attributes of the network.
modify_edges(edges[, names])Update the attributes of the edges.
modify_nodes(nodes[, names])Update the attributes of the nodes.
move()Move the entire mesh object to a different location.
move_node(node)Move a single node of the network object and update the data structure accordingly.
redraw()Redraw the Rhino scene/view.
register(item_type, object_type)select()Select the object representing the item.
Select edges of the network.
Select nodes of the network.