Problem of pfHit for triangle with strips

New Message Reply Date view Thread view Subject view Author view

From: Yigang Wang (yigang.wang++at++gmd.de)
Date: 12/05/2000 06:39:15


Hi, all.

I am making a program to select some parts of the triangle mesh with
Performer. I need the returned parameters of the index of strip
primitive (PFHIT_PRIM) and the index of triangle in the strip
(PFHIT_TRI). But it result in an error in my program. So i check the
example program /usr/share/Performer/src/pguide/libpf/C++/intersect.C

I made a small change of the programe
/usr/share/Performer/src/pguide/libpf/C++/intersect.C, there appear an
strange result. In the example, i change the primitive of the pfGeoSet
(QUADS) to strips representation ( not change the real geometry), and
then i get the result of intersection from the fuuctions:
pfHit::query(&prim_index, PFHIT_PRIM) and pfHit::mQuery(&tri_index,
PFHIT_TRI), I found that the prim_index is always 0. However it changed
correctly for QUADS case or POLYS case.

Is it a bug or not? Do i need to set more parameters for pfHit?

Thanks for your reply.

Yigang

--
**********************************************************************
 Yigang Wang                                  tel: +49 (2241) 14 2980
 http://www.viswiz.gmd.de                     fax: +49 (2241) 14 2040
                                            email: yigang.wang++at++gmd.de
 GMD - The German National Research Center for Information Technology


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Dec 05 2000 - 06:39:23 PST

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