pfFluxed vertices

New Message Reply Date view Thread view Subject view Author view

DN=SU12001, RECIPIENTS, SIEGE, AEROSPATIALE (MICHAEL.BOCCARA++at++aeromatra.com)
Fri, 15 Oct 1999 15:10:20 +0200


How do I pfDelete a geoset whose coordinate attributes are pfFluxed ?
I created a geoset whose vertices are pfFluxed, as shown in this following pseudo-code:

gset = new(arena) pfGeoSet;
fluxverts = new pfFlux(30 * sizeof(pfVec3), PFFLUX_DEFAULT_etc...);
writeverts = (pfVec3*) fluxverts->getWritableData();
readverts = (pfVec3*) fluxverts->getCurData();
gset->setAttr(PFGS_COORD3, PFGS_PER_VERTEX, readVerts, NULL);
gset->etc...
{
  writeverts[i].set(...)
  ...
  fluxverts->writeComplete();
}

// then, the time to delete it has come:
pfDelete(gset);
// is it enough to clean up all the datas above, including fluxverts ?
// or should I apply a special treatment to fluxverts ?

Actually, if someone had a sample code with fluxed vertices, I'd be very interested. the fluxed_gset.C example just process the case of fluxed pfGeoSet structure.

Thanks!

Mike


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Oct 15 1999 - 07:33:07 PDT

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