Model.graphuserwindow_to_XYZ#
- Model.graphuserwindow_to_XYZ(x, y, z, n)#
Re-centers the display on a specified point, using a specified number of animation steps to do so. This function differs from
Model.graphuserwindow_byXYZandR()in that the re-center action is not instantaneous; the user’s view pans to the selected point at a specified rate, providing a sense of relative location between the original viewpoint and the new one.- Parameters:
x (double) – The x coordinate of the specified point.
y (double) – The y coordinate of the specified point.
z (double) – The z coordinate of the specified point.
n (int) – The number of frames of animation to use when panning from the original view point location to the new one.
Example#
Re - center the view on a point with coordinates ( 20 , 15.3 , and 72 ) and show 30 steps of the movement involved#import hm import hm.entities as ent model = hm.Model() model.graphuserwindow_to_XYZ(x=20.0, y=15.3, z=72.0, n=30)