John Rohlf (jrohlf++at++tubes)
Sat, 22 Jan 94 13:36:20 -0800
In short, no. In 1.0 and 1.1 pfFind works for paths whose
depths are <= 2. Otherwise only the second node in the path will be matched,
e.g. - pfFindGroup(/G_scene/G_veh/m60+a_copy1/__NPS_tEmP1/m60+a/High/Group 1/gun)
will always return the group G_veh.
There is no workaround other than to traverse the scene and find the
node yourself.
>
>---
>I have a structure (confirmed by pfDebugPrint) containing the following path
>to a DCS:
>
>/G_scene/G_veh/m60+a_copy1/__NPS_tEmP1/m60+a/High/Group 1/gun
>
>---
>For brevity, here is the debug print of the node:
>(I started the debug print at /G_veh because the /G_scene structure is
> complex)
>
> 7:pfDCS 5690 0x14a740b0 {
> 7: path: /G_veh/m60+a_copy1/__NPS_tEmP1/m60+a/High/Group 1/gun
> 7: ctr: (0.012500, 3.223277, 0.294698) rad:1.736382
>
>---
>When I use the function, pfFindDCS with the path from above, I get the message:
>
>Performer Warning:pfFind() Node type pfGroup is not requested type.
>
>---
>When I use the function, pfFindGroup with the path from above, the function
>returns successfully, finding:
>
>G_veh
>
>
>---
>I know the path to be a unique one from the root scene node.
>
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:09 PDT