Thread: [Plib-users] Triangles and Vertices
Brought to you by:
sjbaker
From: Michael W. <michael.wessels@z.zgs.de> - 2001-02-23 20:11:36
|
Hi all, I have loaded an object *.ac in my programm with char Data_Path[128]; int Num_Triangles; aircraft = new ssgTransform ; sprintf(Data_Path,"..\\Data\\"); ssgModelPath (Data_Path) ; ssgTexturePath (Data_Path) ; ssgEntity *aircraft_obj = ssgLoadAC ("body.ac") ; aircraft -> addKid ( aircraft_obj ) ; ssgFlatten ( aircraft_obj ) ; ssgStripify ( aircraft ) ; For further manipulation I needs information about the triangles and vertices of the aircraft_obj. I will implement shadowing after the NEHE Tutorial Lesson 28. What commands from plib I have to use ? With regards Michael |
From: Wolfram K. <w_...@rz...> - 2001-02-24 15:42:24
|
Michael wrote: >What commands from plib I have to use ? getNumTriangles and getTriangle. Search the documentation for these. The good point is that one interface does all cases: - ssgVtxArray and ssgVtxTable. - triangles, quads, n sided polygons. - ignores points and lines. So, with very little code you can get all faces as triangles. You just have to walk the scene graph. See for example, in PPE, in ppeWalkScene.cxx the function: void ppeBuilder::countGeometry( ssgEntity *e ) >With regards > >Michael Bye bye, Wolfram. |
From: Michael W. <michael.wessels@z.zgs.de> - 2001-02-24 21:07:48
|
Hi Wolfram, I have downloaded the source-tar-file as tar.gz but could not extract it with winzip. Do you can send me the ppeWalkScene.cxx by e-mail ? With regards Michael Wolfram Kuss schrieb: > Michael wrote: > > >What commands from plib I have to use ? > > getNumTriangles and > getTriangle. Search the documentation for these. > The good point is that one interface does all cases: > - ssgVtxArray and ssgVtxTable. > - triangles, quads, n sided polygons. > - ignores points and lines. > > So, with very little code you can get all faces as triangles. > You just have to walk the scene graph. See for example, in PPE, in > ppeWalkScene.cxx the function: > > void ppeBuilder::countGeometry( ssgEntity *e ) > > >With regards > > > >Michael > > Bye bye, > Wolfram. > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/lists/listinfo/plib-users |
From: Steve B. <sjb...@ai...> - 2001-02-25 05:09:00
|
Michael Wessels wrote: > > Hi Wolfram, > > I have downloaded the source-tar-file as tar.gz but could not extract it > with winzip. That's probably because you downloaded it with Internet Explorer which is buggy. If you did use IE, what happened is that *it* automagically uncompressed the GZIP but didn't rename it without the '.gz' extension; If you rename <whatever>.tar.gz to <whatever>.tar and then use Winzip to un-tar it, you'll be fine. Alternatively, download it with Netscape - which works. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |
From: Michael W. <michael.wessels@z.zgs.de> - 2001-02-25 11:26:45
|
Hi Steve, I ahve tried it with Netscape. But also no success. Michael Steve Baker schrieb: > Michael Wessels wrote: > > > > Hi Wolfram, > > > > I have downloaded the source-tar-file as tar.gz but could not extract it > > with winzip. > > That's probably because you downloaded it with Internet Explorer which is > buggy. > > If you did use IE, what happened is that *it* automagically uncompressed > the GZIP but didn't rename it without the '.gz' extension; > > If you rename <whatever>.tar.gz to <whatever>.tar and then use Winzip > to un-tar it, you'll be fine. > > Alternatively, download it with Netscape - which works. > > -- > Steve Baker HomeEmail: <sjb...@ai...> > WorkEmail: <sj...@li...> > HomePage : http://web2.airmail.net/sjbaker1 > Projects : http://plib.sourceforge.net > http://tuxaqfh.sourceforge.net > http://tuxkart.sourceforge.net > http://prettypoly.sourceforge.net > http://freeglut.sourceforge.net > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/lists/listinfo/plib-users |
From: Sam S. <sa...@sp...> - 2001-02-25 12:44:27
|
> Hi Steve, > > I ahve tried it with Netscape. But also no success. Actaully I've seen some Irix versions of Netscape try the decompression trick as well (but I think the machine's netscape might had been setup to pipe the file through gzip and then to disk in the mime-type settings). Anyway, what version of Winzip are you using? Sam > Michael > > Steve Baker schrieb: > > > Michael Wessels wrote: > > > > > > Hi Wolfram, > > > > > > I have downloaded the source-tar-file as tar.gz but could not extract it > > > with winzip. > > > > That's probably because you downloaded it with Internet Explorer which is > > buggy. > > > > If you did use IE, what happened is that *it* automagically uncompressed > > the GZIP but didn't rename it without the '.gz' extension; > > > > If you rename <whatever>.tar.gz to <whatever>.tar and then use Winzip > > to un-tar it, you'll be fine. > > > > Alternatively, download it with Netscape - which works. > > > > -- > > Steve Baker HomeEmail: <sjb...@ai...> > > WorkEmail: <sj...@li...> > > HomePage : http://web2.airmail.net/sjbaker1 > > Projects : http://plib.sourceforge.net > > http://tuxaqfh.sourceforge.net > > http://tuxkart.sourceforge.net > > http://prettypoly.sourceforge.net > > http://freeglut.sourceforge.net > > > > _______________________________________________ > > plib-users mailing list > > pli...@li... > > http://lists.sourceforge.net/lists/listinfo/plib-users > > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/lists/listinfo/plib-users > |
From: Michael W. <michael.wessels@z.zgs.de> - 2001-02-25 16:57:14
|
Hi Sam, I am using WinZip 7.0 Michael Sam Stickland schrieb: > > Hi Steve, > > > > I ahve tried it with Netscape. But also no success. > > Actaully I've seen some Irix versions of Netscape try the decompression > trick as well (but I think the machine's netscape might had been setup to > pipe the file through gzip and then to disk in the mime-type settings). > > Anyway, what version of Winzip are you using? > > Sam > > > Michael > > > > Steve Baker schrieb: > > > > > Michael Wessels wrote: > > > > > > > > Hi Wolfram, > > > > > > > > I have downloaded the source-tar-file as tar.gz but could not extract > it > > > > with winzip. > > > > > > That's probably because you downloaded it with Internet Explorer which > is > > > buggy. > > > > > > If you did use IE, what happened is that *it* automagically uncompressed > > > the GZIP but didn't rename it without the '.gz' extension; > > > > > > If you rename <whatever>.tar.gz to <whatever>.tar and then use Winzip > > > to un-tar it, you'll be fine. > > > > > > Alternatively, download it with Netscape - which works. > > > > > > -- > > > Steve Baker HomeEmail: <sjb...@ai...> > > > WorkEmail: <sj...@li...> > > > HomePage : http://web2.airmail.net/sjbaker1 > > > Projects : http://plib.sourceforge.net > > > http://tuxaqfh.sourceforge.net > > > http://tuxkart.sourceforge.net > > > http://prettypoly.sourceforge.net > > > http://freeglut.sourceforge.net > > > > > > _______________________________________________ > > > plib-users mailing list > > > pli...@li... > > > http://lists.sourceforge.net/lists/listinfo/plib-users > > > > > > _______________________________________________ > > plib-users mailing list > > pli...@li... > > http://lists.sourceforge.net/lists/listinfo/plib-users > > > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/lists/listinfo/plib-users |