Re: path in intersection

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Mon, 15 Jun 1998 14:33:20 +0200 (MET DST)


>
> Hi pfAll,
>
> I have a scene graph with a part which looks like:
>
> pfDCS
> / | \
> / | \
> pfDCS pfDCS pfDCS
> \ | /
> \ | /
> pfGeode
>
> When doing a picking, I wish to know which intermediate pfDCS I have picked.
> I suppose I must use a pfPath, but these are always empty, both when
> using pfiPick (with the callback) and when using intersection callback.
> So... Any idea ?

In the case of intersection with pfNodeIsectSegs() you have to set the
mode field of the pfSegSet to include the storing of a path by adding
the PFTRAV_IS_PATH constant.

If you take a look in the include files for pfiPick you see that you
can use the PFTRAV_IS_* constants to set the required mode for the
PFIP_MODE_ISECT, ..
You can use PFTRAV_IS_PATH to let pfiPick store the path, but it is
default set.
How to get the path after the picking I don't know.
If you take a look at the source code I think there is a bug in the
pfiPick::_doPick function. It uses a local paviable pfPath* path and
not the class variable pPath to get the path dusring the query.
It just dumps the path found to stderr. pPath is public so you should
be able to get it if the routines where using it.

Also the data member pPathList is created and not used in a sensible manner.

Just take the source code and adjust it to your needs.
You can find it in /usr/share/Performer/src/lib/libpfui

Mario
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:32 PDT

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