Re: Problem in getting AttributeLists of GeoSets

New Message Reply Date view Thread view Subject view Author view

c.mottram (ucftchr++at++ucl.ac.uk)
Wed, 26 May 1999 14:26:58 +0100


This is normal, I have never got an index list from an Inventor file.
I put in code for the indexed case, but I don't think its ever been used.

If you're trying to get at the vertices, its as well to assume you're going
to have to long winded about it.
you have to find the number of primitives
int n = gset->getNumPrims(); get the type
int type=gset->getPrimType(); then get the lengths
int *lens= gset->getPrimLengths();
if lens == NULL then you can assume its all triangles, quads, lines or
points the "type" will tell you that
then go through all the coords from your gset->getAttrLists(

hope this is some solace
Chiron

At 11:01 PM 5/22/99 +3500, you wrote:
>Hi all,
>
>New to Performer, I have a problem in getting the indexlists for normals
>and vertices of a geoset. I am loading inventor files and try to access
>vertices, normals and the corresponding indexlists of the geosets of the
>loaded objects. With getAttrLists() I get the vertices and normals but
>not the indexlists, though the inventor files use indexed normals and
>vertices.
>I would like to know how I can get access to the indexlists?
>
>I am using Performer 2.1 on an Indigo2 Maximum Impact.
>
>Thanx in advance to the gurus out there.
>
>Markus Greunz
>
>-----------------------------------------------------------------------
>List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed May 26 1999 - 06:27:18 PDT

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