Model.rotateabout#

Model.rotateabout(overridedefault, x, y, z)#

Defines a new center of rotation for Model.rotate() and Model.quatrotate() functions.

Parameters:
  • overridedefault (int) –

    0 - Uses default center.

    1 - Defines the center using x, y, z arguments.

  • x (double) – The x coordinate of the center of rotation. Ignored if overridedefault=0.

  • y (double) – The y coordinate of the center of rotation. Ignored if overridedefault=0.

  • z (double) – The z coordinate of the center of rotation. Ignored if overridedefault=0.

Example#

Use a default center as the new center of rotation#
import hm
import hm.entities as ent

model = hm.Model()

model.rotateabout(overridedefault=0, x=0, y=0, z=0)