On Jan 28, 2012, at 10:11 AM, Tom Browder wrote:
> That would be my choice for first to be done, but shouldn't that be
> max if we are using a square pixmap?
Not sure whether we're saying the same thing but the issue on max dimension vs
min dimension is easily shown. Consider a window 1680x1050. That's a view
ratio of 1.6, perhaps it's a full screen window on a laptop. You'll end up
potentially clipping the top and bottom of geometry that has a bounding box
ratio less than 1.6, such as a simple rpp (height-to-width ratio is 1.0):
------------
| |
--|-- view --|-- 1.6 ratio view
| | | |
| | | |
--|----------|--
| |
--- bbox --- 1.0 ratio object displayed at 90% of view width
In order to ensure the object is always fully in view when drawn, you have to
use the minimum dimension of the width and height. If you don't use the min,
you risk displaying geometry entirely off-view leading to usability problems
(consider a comb consisting of only spheres at the 8 vertices of a box.
Naturally, if you have a wide view, that means you'll often have dead space on
the longer dimension. That's why the current approach uses the diagonal which
is a compromise between the two.
Cheers!
Sean
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel