From: Mike Pfauth (MPFAUTH++at++colsa.com)
Date: 05/20/2003 07:19:17
The functions pfGeoSet::getAttrBind and pfGeoSet::getAttrLists might do what you want.
Question for the SGI guys: how is the bounding box calculated? Apparently it's center is not the centroid of the geometry.
The human brain is only used to 10% of capacity.
The rest is overhead for the operating system.
>>> "Bard Jr., Richard D." <RDBardJ++at++xch-bsco-06.ksc.nasa.gov> 05/19/03 02:35PM >>>
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
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue May 20 2003 - 07:22:40 PDT