PFGS_TRISTRIPS

New Message Reply Date view Thread view Subject view Author view

0000-Admi (root++at++cae-gmbh.de)
Tue, 4 Apr 95 10:59:10 +0200


Please, can anyone tell me what I must do, to create a pfGeoSet with NON-INDEXED
PFGS_TRISTRIPS ? What I tried is:

...
...
pfVec4 *colors;
pfVec3 *normals,
                        *coords;
long *lengths;

...
...
/* Creation of the fields colors, normals, coords, and lengths */
pfGSetNumPrims ( gset, 4 );
pfGSetPrimType ( gset, PFGS_TRISTRIPS );
pfGSetPrimLengths ( gset, lengths );

pfGSetAttr ( gset, PFGS_NORMAL3, PFGS_PER_VERTEX, normals, NULL );
pfGSetAttr ( gset, PFGS_COLOR4, PFGS_OVERALL, colors, NULL );
pfGSetAttr ( gset, PFGS_COORD3, PFGS_PER_VERTEX, coords, NULL );

pfAddGSet ( (pfGeode *) geode, gset );
...
...

but it dont works correctly. I print out the GeoSet with pfPrint and
I get the first PFGS_TRISTRIPS four times and the others are lost.

Thanks!

-Dietmar

+-----------------------------------------------+
| Dietmar Wagner, CAE Electronics GmbH, Germany |
| Tel.: +49-2402-106-333 |
| Fax : +49-2402-106-270 |
| Email: dwagner++at++cae-gmbh.de |
+-----------------------------------------------+


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:10 PDT

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