* Zooms the view so that it approximates the selected region.

* Fix: Zoom region marquee appears in all views.

* Tested with:

  - Windows 7 64-bit / Visual Studio 2010
  - Ubuntu 12.04 LTS 32-bit

NOTES:

Zoom region works only if there are some pieces within the selected region.

Since the selected region likely does not have the same aspect as the view, the 
zoom will fit the selected region inside the view with additional space for 
whichever view dimension is too long.

To most accurately predict a good focus plane it is necessary to detect which 
object piece vertices are in the region.  I dodged this complexity for now and 
simply use the closest vertex of any object that is in the region.  Sometimes 
that vertex is out of region and actually closer or further than anything in 
region, so it will appear that the camera zoomed too far or not enough.  For 
example, if a long brick is going from near left to far right (e.g. the default 
placement when you drag a 1x12 into a model) and you select the far right end, 
the left near end is what will be used for the focal plane and it won't quite 
zoom in on the right end as expected.

If split views were present the selection marquee was showing in all of them 
simultaneously.  Now it just shows in the view you are dragging on.

- Rod                                     

Attachment: svn.leocad.org_zoom_region.patch
Description: Binary data

_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to