Re: bounding box for a pfNode ?

New Message Reply Date view Thread view Subject view Author view

MLM Veraart (Veraart++at++fel.tno.nl)
Wed, 12 May 1999 12:44:33 +0200


Kevin Kronmiller wrote:
>
> Hi,
>
> I am loading a terrain database in .flt format and need to find the minimum and maximum X and Y values for the database. In the pfflt.h header file I see a structure HEADERcb that appears to contain this data. How do I access this structure? Is there a better way to do this?
>

You can take a look at the flightloader callback mechanism.
It was in the README file for the flight loader, it might be
written in a man pages now.
If you register a flight loader callback your callbackfunction will be
called when it processes the header-node.
You can also load the file into performer and do a
   pfuTravCalcBBox()
and print the numbers in the pfBox structure.
Whith this method you can get the extends of any file loadable
in performer. Take a look at the source code of pfconv and add
the call to pfuTravCalcBBox().

Mario


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed May 12 1999 - 03:43:22 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.