Re: SEC:U Help with finding a node with findnode

New Message Reply Date view Thread view Subject view Author view

Geoff Levner (g.levner++at++acsys.it)
Mon, 13 Dec 1999 12:49:54 +0100


By default, the MultiGen loader flattens and cleans up your database, and
in the process it may be removing the nodes you are interested in. The
simplest way to prevent it from doing this is by adding the following
calls to your program (before loading the database):

    pfdConverterMode(".flt", PFFLT_FLATTEN, 0);
    pfdConverterMode(".flt", PFFLT_CLEAN, 0);

Alternatively, you can prevent the loader from deleting specific nodes by
registering a callback that handles the CB_CLEANNODE "bead". All this is
documented in
/usr/share/Performer/src/lib/libpfdb/libpfflt/README.FLT.R15_3 .

Geoff

Tim Fagan wrote:

> I'm doing something I would have thought would be
> a walk in the park but I must be missing
> something. I have a little display program that
> shows where pilots are looking in a cockpit - this
> loads fine but I need to find some particular
> polygons for intersection testing. In Multigen I
> have tried naming these as nodes and groups but
> when I load the file with pfdLoad and subsequently
> perform a pfFindNode with the names entered in
> multigen nothing is returned. I have tried using
> the demo 'writeascii' and it doesn't print any of
> the names either . Where have they gone? Do the
> names given in the flt files get removed if the
> geometry is very simple i.e. one polygon?
> Is there some default node name remover I haven't
> disabled or something. Please help as this is
> driving me nuts - the intersection testing works -
> thats where I expected trouble not in the findnode
> routine.

--
Geoff Levner -- g.levner++at++acsys.it
ACS Studio, via Aurelia 58, 00165 Roma, Italy
tel. +39-063936331, fax +39-0639363317

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 13 1999 - 03:39:53 PST

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