Model.graphuserwindow_byXYZandR#
- Model.graphuserwindow_byXYZandR(x, y, z, r)#
Re-centers the graphics display to center on a specified point, and resizes (zooms) the display based on a specified view radius.
- 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.
r (double) – The radius of a sphere that defines the zoom level of the user’s view. The display is zoomed in or out so that a sphere of this radius originating at the specified point fits within the display.
Example#
Re - center the view on a point with coordinates ( 20.0 , 15.3 , 72.0 ) and zoom to display entities within 24.2 units of this point#import hm import hm.entities as ent model = hm.Model() model.graphuserwindow_byXYZandR(x=20.0, y=15.3, z=72.0, r=24.2)