Brian Furtaw (brian++at++sgi.com)
Tue, 14 Jan 1997 10:32:46 -0500
Here is some sample code I put into my updateSim() routine to generate a
dynamic surface.
...
static pfGeoSet *ocean;
if(doOnce) {
doOnce = False;
pfGeode *temp = (pfGeode *)
ViewState->scene->find("virtOcean", pfGeode::getClassType());
ocean = temp->getGSet(0);
...
}
...
#ifdef CYCLEBUFFERS
pfCycleBuffer *coords;
#else
pfVec3 *coords;
#endif
pfVec3 *norms;
ushort *n_ilist;
ushort *vertexlist;
ocean->getAttrLists(PFGS_COORD3, (void **)&coords, &vertexlist);
ocean->getAttrLists(PFGS_NORMAL3, (void **)&norms, &n_ilist);
Brian
On Jan 14, 9:12am, Ming Wah wrote:
> Subject: POinter to coordinate list
>
> Hi all,
> Does anyone know how to query a GEoSet and put a pointer to the
> list of coordinates? Can these coordinates be changed during simulation
> (update of position)?
>
>
> THanks!!!!
>
> Jon
>
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Ming Wah
-- o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-oBrian Furtaw (brian++at++sgi.com) VisSim Technical Consultant 12200-G Plum Orchard Drive Office: (301)572-3293 Fax: (301)872-3293 Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:20 PDT