Set the relative reference frame. From it, the properties will be
entered. Once this method called, the default properties are set on the
object, with an update of reference frame. This method is usually called
just after the object creation, else there is no relative reference frame
written for the input file.
WARNING: If this method is used as last, the object properties are not
updated. This is default of the package that needs to be fixed.
Example:
ref = ReferenceFrame()
ref.set_position(10., 0., 0.)
node1 = StructuralNode()
node1.set_relative_from(ref)
node1.set_position(5., 0., 0.)
node2 = StructuralNode()
node2.set_position(5., 0., 0.)
node2.set_relative_from(ref)
Relative to the absolute reference frame, the node 1 will be placed
15m from the origin while the node 2 will be only at 5m.
|