pfdGeoBuilder tools

New Message Reply Date view Thread view Subject view Author view

Jose Ricardo Silva (jrsilva++at++onyx.fe.up.pt)
Mon, 25 Aug 1997 17:20:50 +0000


Hi !

I'm trying to use this tools to convert a GeoSet with type QUADS or POLYS into
GeoSet(s) with type TRIS or TRISTRIPS. I've tryed the following way:

1) I already have a GeoSet with type QUADS or POLYS before the following steps

2) I create a new GeoBuilder (with pfdNewGeoBldr)

3) I allocate a new pfdGeom structure with the number of vertices obtained with
    the following sentences:
   3.1) numVerts = pfGetGSetAttrRange(PolyOrQuad, PFGS_COORD3, NULL, &max);
   3.2) numVerts = PF_MAX2(numVerts, max + 1);

4) At this step i fill the pfdGeom structure with the data from the GeoSet
   (attribute lists, bindings and so on)

5) I attach the pfdGeom structure to the GeoBuilder with pfdAddPoly

6) I use pfdBuildGSets to return a pfList with the GeoSet(s)

My problem is that in step 6 the number of elements in the pfList is always 0.

I've tested it with a simple GeoSet with 6 QUADS forming a cube and it never
worked. I also tried to use pfdAddGeom instead of pfdAddPoly (the
pfdGeoBuilder man pages say that pfdAddPoly is a low-level function invoked by
pfdAddGeom, and should not be used directly).

Anyway, i don't seem to be able to find out what's wrong with the code, so if
somebody can help me on this i'd appreciate.

-- 
Jose' Ricardo F. Silva
Tel: (02) 9966175
e-mail:	jrsilva++at++onyx.fe.up.pt
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/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 Mon Aug 10 1998 - 17:55:46 PDT

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