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.
Attributes
SETTINGSanchorThe node of the network that is anchored to the location of the object.
guid_edgeMap between Rhino object GUIDs and network edge identifiers.
guid_edgelabelMap between Rhino object GUIDs and network edgelabel identifiers.
guid_nodeMap between Rhino object GUIDs and network node identifiers.
guid_nodelabelMap between Rhino object GUIDs and network nodelabel identifiers.
guidslocationcompas.geometry.Point: The location of the object.networknode_xyzThe view coordinates of the mesh object.
rotationlist of float: The rotation angles around the 3 axis of the coordinate system with the origin placed at the location of the object in the scene.
scalefloat: A uniform scaling factor for the object in the scene.
Inherited Attributes
artistiditemlayernamesceneMethods
Clear all previously created Rhino objects.
Draw the object representing the network.
Update the attributes of the network.
Update the attributes of the edges.
Update the attributes of the nodes.
Move the entire mesh object to a different location.
Move a single node of the network object and update the data structure accordingly.
Select the object representing the item.
Select edges of the network.
Select nodes of the network.
Inherited Methods
Clear the layer of the object.
Redraw the Rhino scene/view.