NetworkObject

class compas_ui.objects.NetworkObject(*args, **kwargs)[source]

Bases: Object

Class for representing COMPAS networkes in Rhino.

Attributes:
  • anchor (int) – The node of the network that is anchored to the location of the object.

  • location (compas.geometry.Point) – The location of the object. Default is the origin of the world coordinate system.

  • scale (float) – A uniform scaling factor for the object in the scene. The scale is applied relative to the location of the object in the scene.

  • rotation (list[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.

  • node_xyz (dict[int, list[float]]) – The view coordinates of the network object.

Methods

modify_edges

modify_nodes

move_edge

move_node

select_edges

select_nodes

Inherited Methods

add

clear

draw

modify

move

redraw

register

remove

select