c.mottram (ucftchr++at++ucl.ac.uk)
Wed, 26 May 1999 14:26:58 +0100
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
>
>
This archive was generated by hypermail 2.0b2 on Wed May 26 1999 - 06:27:18 PDT