Re: [info-performer] geoset manipulate vertex

New Message Reply Date view Thread view Subject view Author view

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>&nbsp;</DIV>
> ><DIV><FONT face=Arial size=2>&nbsp;pfGeode *model1 =(pfGeode *)
> >pfdLoadFile("cow.obj");<BR>&nbsp;int
variabile;<BR>&nbsp;ushort&nbsp;*icoords,
> >*inorms;<BR>&nbsp;pfVec3&nbsp;*coords, *ncoords, *norms,
*nnorms;</FONT></DIV>
> ><DIV><FONT face=Arial
size=2>&nbsp;variabile=model1-&gt;getNumGSets();&nbsp;
> ></FONT></DIV>
> ><DIV><FONT face=Arial size=2>// there are 6 gset</FONT></DIV>
> ><DIV><FONT face=Arial size=2>&nbsp;pfGeoSet *gset=model1-&gt;getGSet
> >(1);&nbsp;<BR>&nbsp;gset-&gt;getAttrLists(PFGS_COORD3,
(void**)&amp;coords,
> >&amp;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>&nbsp;</DIV>
> ><DIV><FONT face=Arial size=2>Thanks coords_thanks</FONT></DIV></DIV>
> ><DIV>&nbsp;</DIV>
> ><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>
> >


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 18 2003 - 09:30:06 PST

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