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);
This archive was generated by hypermail 2b29 : Tue Feb 18 2003 - 10:11:44 PST