Model.rotatedummy#
- Model.rotatedummy(collectorentity, plane_normal, plane_base, increment)#
Rotates the dummy by an arbitrary axis that is specified by a plane.
- Parameters:
collectorentity (Entity) – The object describing the entity to be rotated.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components. User can also supply a Python list of three doubles.
plane_base (hwTriple) – The hwTriple object defining the base point components of the plane. User can also supply a Python list of three doubles.
increment (double) – The number of degrees to rotate the dummy.
Example#
Rotate about the x axis by 90.0 degrees , the component with ID 1 that exists within the dummy ( and is included in the parent / child system )#import hm import hm.entities as ent model = hm.Model() model.rotatedummy( collectorentity=ent.Component(model, 1), plane_normal=[1.0, 0.0, 0.0], plane_base=[0.0, 0.0, 0.0], increment=90.0, )