On Jan 28, 2012, at 7:54 AM, Tom Browder wrote: > For rtedge I would like the autoview to center the view on the > bounding box of the objects in view and have just a bit of padding. > Perhaps a new option to rtedge would be needed. Something like: > > -c "set center=bbox" -c "set padding=#"
Assuming you don't run the viewsize command, it already is centered on the bounding box. The issue, I believe, is that it aims for displaying an object approximately 1/2 the viewing diagonal. Therein lies a problem... For square views, this results in displaying objects that only fill half the view, but for non-square images it strikes a balance between how much gets displayed. A start could be to modify the autoview command (src/libged/autoview.c) to take an optional scaling argument. Then it'd be a bit easier to expose that parameter through to tools for adjusting the amount of padding. We could look into the impact of changing the default then too, at least for near-square views. I'd also want to change the sizing behavior to not consider the viewing diagonal and instead look at the minimum view width/height value so it's always in view and it's a percentage of the smallest dimension. Thoughts? 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
