Re: [info-performer] geoset manipulate vertex

New Message Reply Date view Thread view Subject view Author view

From: Ulrich Hertlein (u.hertlein++at++sandbox.de)
Date: 02/18/2003 10:09:16


Hi,

Quoting Francesco Chionna <francesco.chionna++at++cetma.brindisi.enea.it>:
> > >I would like to manipulate the vertex inside a pfGeoSet but always a
> > >error message compare on my screen.
> > >This is the code :
> > >
> > > pfGeode *model1 =(pfGeode *) pfdLoadFile("cow.obj");

The node returned by pfdLoadFile() isn't necessarily a pfGeode. It's more likely
to be a pfGroup with a pfGeode child. Try to check that and traverse the tree
downwards until you meet a pfGeode.

> > > int variabile;
> > > ushort *icoords, *inorms;
> > > pfVec3 *coords, *ncoords, *norms, *nnorms;
> > > variabile=model1->getNumGSets();
> > >// there are 6 gset
> > > pfGeoSet *gset=model1->getGSet (1);
> > > gset->getAttrLists(PFGS_COORD3, (void**)&coords, &icoords);


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 18 2003 - 10:11:44 PST

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