flokart
September 14, 2020, 5:51am
1
Hi,
can someone tell me how ‘zoom extend’ works.
I can use the selected object location for the view location (window).
I can use the selected object rotation for the view location.
But how can i zoom in till the selected object fits the window (orthographic view)?
Any tip is welcome
siemen
September 14, 2020, 5:55am
2
Are you looking for ZoomSelected?
flokart
September 14, 2020, 5:57am
3
yes , but not the command instead the vector/matrix math behind it.
davidcockey
(David Cockey)
September 14, 2020, 2:12pm
4
McNeel rarely if ever provides details of the math used in Rhino beyond the basics of NURBS and related.
dale
(Dale Fugier)
September 14, 2020, 7:19pm
5
Hi @flokart ,
Here is come C++ code I posted a while back.
Is there a way to ask an OpenNURBS view to zoom to extents to match the assigned ON_3dmViewTraceImage ?
Similar to the code here:
But purely using the OpenNURBS library? (eg. replicating what the RhinoDollyExtents call does in that example) and ideally a way to also account for the ON_3dmViewTraceImage assigned to the view?
– Dale