From: Paolo Farinelli (paolo++at++sgi.com)
Date: 10/05/2004 16:03:39
Hello Raymond,
the source code for the .iv loader is shipped with Performer and
can be found in /usr/share/Performer/src/lib/libpfdb/libpfiv.
(or %PFROOT%\Src\lib\libpfdb\libpfiv on Win32).
You may also need to look into the source for libpfdu as I believe
the iv loader uses the pfdGeoBuilder API to create its geometry.
Hope this helps.
Regards,
Paolo
Pei Chen wrote:
>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
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Tue Oct 05 2004 - 16:03:42 PDT