Model.setviewangles#

Model.setviewangles(thetax, thetay, thetaz)#

Sets the view based on angles.

Parameters:
  • thetax (double) – The angle of rotation about the x-axis.

  • thetay (double) – The angle of rotation about the y-axis.

  • thetaz (double) – The angle of rotation about the z-axis.

Example#

Rotate the view 30.0 degrees about the x-axis and 45.0 degrees about the y-axis#
import hm
import hm.entities as ent

model = hm.Model()

model.setviewangles(thetax=30.0, thetay=45.0, thetaz=0.0)