We're developing a CAD app using Java3D. Mostly done, and things work pretty well (once you discover by trial and error all the CapabilityNotSetExceptions that lurk in J3D). We have a fully modelled structure of a house, and use J3D to display parts of the house in the usual scene graph/hierarchical format. My question is this: Given some volume/bounds and a gaze direction (e.g. FRONT, PLAN, LEFT, etc.) how do I compute the position (to stuff into the view platform transform) that will allow the bounds to be fully viewed, maybe plus a margin. Since our app handles both perspective and parallel projections, it gets a bit tricky. Under a parallel proj. we zoom by futzing the screen scale, as well as the position. Any pointers or code is appreciated. -- Tim Beres -- Software Architecture, Design and Build Services Dovetail Software, Inc., 3076 6th St. Boulder, CO 80304 Email: [EMAIL PROTECTED] Web: www.swdesignbuild.com Phone: (303) 443-3577 Fax: (303) 546-6197 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
