Re: pfSegsIsectNode PFTRAV_IS_PATH problem

New Message Reply Date view Thread view Subject view Author view

Robert Reif (reif++at++ntsc-rd.navy.mil)
29 Apr 94 17:02:00 EST


Here is some more info on the problem I am having with pfSegsIsectNode
and PFTRAV_IS_PATH. I hacked up the sample program intersect.c until I
was able to duplicate my problem. When I add a pfSwitch node above geode
and enable PFTRAV_IS_PATH, I no longer get any intersections. With
PFTRAV_IS_PATH not set, everything works fine. The following is a diff
of /usr/src/Performer/src/pguide/libpf/progs/intersect.c:

70d69
< pfSwitch *sw;
124,126d122
< sw = pfNewSwitch();
< pfAddChild(sw, geode);
< pfSwitchVal(sw, PFSWITCH_ON);
131c127
< pfAddChild (scs[loop], sw);

---
> 		pfAddChild (scs[loop], geode);
159c155
< 	segset.mode = PFTRAV_IS_PRIM|PFTRAV_IS_NORM|PFTRAV_IS_CULL_BACK|PFTRAV_IS_PATH;
---
> 	segset.mode = PFTRAV_IS_PRIM|PFTRAV_IS_NORM|PFTRAV_IS_CULL_BACK;

As is, the program fails to find any intersections. When |PFTARV_IS_PATH is commented out, it works fine.

Robert Reif reif++at++ntsc-rd.navy.mil


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:50:15 PDT

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