From: Francesco Chionna (francesco.chionna++at++cetma.brindisi.enea.it)
Date: 02/18/2003 09:24:34
Hi,
yes, i tried but there is always the same error.I would like to know if the
same code run well on your pc.
Another idea?
Thanks a lot.
>
> Have you tried ?
> variabile=model1->getNumGSets();
> for (int i = 0 ; i < variabile; i++)
> {
> pfGeoSet *gset=model1->getGSet (i); // note the "i"
> if(gset!=NULL)
> {
> gset->getAttrLists(PFGS_COORD3, (void**)&coords,
&icoords);
> }
> }
> just to be sure...
>
> happy programming
> Chiron
> At 16:33 18/02/2003 +0100, you wrote:
> >Hi,
> >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");
> > 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);
> >.....
> >Unhandled exception in prova.exe(LIBPF.dll) Access Violation
> >i do not understand why it is not possible.
> >
> >Thanks coords_thanks
> >
> >
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> ><HTML><HEAD>
> ><META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> ><META content="MSHTML 6.00.2600.0" name=GENERATOR>
> ><STYLE></STYLE>
> ></HEAD>
> ><BODY bgColor=#ffffff>
> ><DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
> ><DIV><FONT face=Arial size=2>I would like to manipulate the vertex inside
a
> >pfGeoSet but always a error message compare on my screen. </FONT></DIV>
> ><DIV><FONT face=Arial size=2>This is the code :</FONT></DIV>
> ><DIV><FONT face=Arial size=2></FONT> </DIV>
> ><DIV><FONT face=Arial size=2> pfGeode *model1 =(pfGeode *)
> >pfdLoadFile("cow.obj");<BR> int
variabile;<BR> ushort *icoords,
> >*inorms;<BR> pfVec3 *coords, *ncoords, *norms,
*nnorms;</FONT></DIV>
> ><DIV><FONT face=Arial
size=2> variabile=model1->getNumGSets();
> ></FONT></DIV>
> ><DIV><FONT face=Arial size=2>// there are 6 gset</FONT></DIV>
> ><DIV><FONT face=Arial size=2> pfGeoSet *gset=model1->getGSet
> >(1); <BR> gset->getAttrLists(PFGS_COORD3,
(void**)&coords,
> >&icoords);</FONT></DIV>
> ><DIV><FONT face=Arial size=2>.....</FONT></DIV>
> ><DIV>
> ><DIV><FONT face=Arial size=2>Unhandled exception in prova.exe(LIBPF.dll)
> Access
> >Violation</FONT></DIV>
> ><DIV><FONT face=Arial size=2>i do not understand why it is not
> >possible.</FONT></DIV>
> ><DIV> </DIV>
> ><DIV><FONT face=Arial size=2>Thanks coords_thanks</FONT></DIV></DIV>
> ><DIV> </DIV>
> ><DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
> >
This archive was generated by hypermail 2b29 : Tue Feb 18 2003 - 09:30:06 PST