Model.trueview#
- Model.trueview(plane_normal, plane_base, flip_normal=0)#
Modifies the view so that a model-defined vector is normal to the screen.
- Parameters:
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.
flip_normal (int) – Reserved for future development
Example#
Make the vector ( 1.0 , 0.0 , 0.0 ) normal to the screen and to place the point ( 0.0 , 0.0 , 0.0 ) at the center of the screen#import hm import hm.entities as ent model = hm.Model() model.trueview( plane_normal = [1.0, 0.0, 0.0], plane_base = [0.0, 0.0, 0.0] )