[info-performer] Setting the initial channel view position

Date view Thread view Subject view Author view

From: Bard Jr., Richard D. (RDBardJ++at++xch-bsco-06.ksc.nasa.gov)
Date: 05/19/2003 12:35:14


I'm using pfdLoadFile to load several .obj and .pfb files, then I'm trying
to position the channel's view so that the 1st object is visible. I have
copied -n- pasted the code from trackball.c and it works fine - IF the
geometry in the object is near (0,0,0). Unfortunately, the people who
modelled these objects in the .obj and .pfb files placed the geometry out
around .... well, it's way out there. pfuTravCalcBBox includes (0,0,0) in
the bounding box - even if the geometry is a 1x1x1 cube which has vertices
located at (1000, 1000, 1000), etc.

I'm thinking of doing a "roll-your-own" bounding box function that traverses
the list of vertices in the pfGeoSet and finds the (min, max) vertices - but
how do you obtain the list of the vertices in the pfGeoSet?

Any ideas?

Thanks -

Rick Bard
KSC - Boeing


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon May 19 2003 - 12:37:25 PDT