[info-performer] need help on pfGeoSet and triangle mesh

Date view Thread view Subject view Author view

From: Pei Chen (pchen++at++mail.eecis.udel.edu)
Date: 10/05/2004 06:23:36


Hey, everybody,
I have some questions regarding to pfGeoSet and loading a *.iv file into a
pfGeoSet here.

I have an Inventor file (*.iv) which specifies an indexed triangle mesh. I
use pfdLoadFile() to load the mesh data into the performer. later in my
project, I need to access individual vertex using the corresponding index.
It seems that, however, Performer dose some optimization to the mesh data
such and the indics of the mesh vertics are different than those specified
in the .iv file.
For example, in the .iv file, it says a triangle face is formed by vertics
0,1,2, but after I load it into the pfGeoSet object, the Performer says
the
same triangle face is formed by vetics 4, 5, 6.

There is another problem with the pfGeoSet. It seems Performer also
changes
the number of vertics when it loads in the mesh data from .iv file. For
instance, in the .iv file, 8 vertics are specified. But when i load it
into
the pfGeoSet, it splits some vertics and the number of vertics changes to
18.

The last problem is the primitive type. I really want the Performer treat
my
mesh data as PFGS_TRIS type, that is triangle mesh, but when i use
pfdLoadFile() to load in the mesh data, Performer always treats my mesh
data
as PFGS_FLAT_TRISTRIPS, that is flat triangle strip mesh. Is there any way
to tell Performer that I want PFGS_TRIS intead of PFGS_FLAT_TRISTRIPS.
I tried the pfGeoSet->setPrimType(), but it dosen't work.

So, what I want to know is what exactly happen when I load in a .iv mesh
data using pfdLoadFile().

Thanks.

Raymond


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 05 2004 - 06:25:10 PDT