src/compas_3gs/rhino/objects/formnetworkobject.py
def node_xyz(self):
        """dict : The view coordinates of the network object."""
        origin = Point(0, 0, 0)
        if self.anchor is not None:
            xyz = self.network.node_attributes(self.anchor, 'xyz')
            point = Point(* xyz)
            T1 = Translation.from_vector(origin - point)
            S = Scale.from_factors([self.scale] * 3)
            R = Rotation.from_euler_angles(self.rotation)
            T2 = Translation.from_vector(self.location)
            X = T2 * R * S * T1
        else:
            S = Scale.from_factors([self.scale] * 3)
            R = Rotation.from_euler_angles(self.rotation)
            T = Translation.from_vector(self.location)
            X = T * R * S
        network = self.network.transformed(X)
        node_xyz = {node: network.node_attributes(node, 'xyz') for node in network.nodes()}
        return node_xyz
dict : The view coordinates of the network object.
dict : The view coordinates of the network object.
dict : The view coordinates of the network object .
def node_xyz(self):
        origin = Point(0, 0, 0)
        if self.anchor is not None:
            xyz = self.network.node_attributes(self.anchor, 'xyz')
            point = Point(* xyz)
            T1 = Translation.from_vector(origin - point)
            S = Scale.from_factors([self.scale] * 3)
            R = Rotation.from_euler_angles(self.rotation)
            T2 = Translation.from_vector(self.location)
            X = T2 * R * S * T1
        else:
            S = Scale.from_factors([self.scale] * 3)
            R = Rotation.from_euler_angles(self.rotation)
            T = Translation.from_vector(self.location)
            X = T * R * S
        network = self.network.transformed(X)
        node_xyz = {node: network.node_attributes(node, 'xyz') for node in network.nodes()}
        return node_xyz
def node_xyz ( self ) : origin = Point ( 0 , 0 , 0 ) if self . anchor is not None : xyz = self . network . node_attributes ( self . anchor , 'xyz' ) point = Point ( * xyz ) T1 = Translation . from_vector ( origin - point ) S = Scale . from_factors ( [ self . scale ] * 3 ) R = Rotation . from_euler_angles ( self . rotation ) T2 = Translation . from_vector ( self . location ) X = T2 * R * S * T1 else : S = Scale . from_factors ( [ self . scale ] * 3 ) R = Rotation . from_euler_angles ( self . rotation ) T = Translation . from_vector ( self . location ) X = T * R * S network = self . network . transformed ( X ) node_xyz = { node : network . node_attributes ( node , 'xyz' ) for node in network . nodes ( ) } return node_xyz
dict : The view coordinates of the network object.
dict : The view coordinates of the network object .
"""dict : The view coordinates of the network object."""
self