Thanks Paul, It seems to me that I would need a similar convenience routine that creates GL_LINE_... primitives for arbitrary geometry. The thing is a lot of fe-models still use quads, end-users expect to see quads for their fe-models.
René 2010/2/1 Paul Martz <[email protected]> > René Molenaar wrote: > >> I noticed that the latest developers release (2.9.6) translates quads to >> triangles. >> Very large models need to be chopped into smaller pieces for this >> translation to work, >> but in most cases it goes unnoticed.. until, you switch to wireframe. >> Now we see the triangles. For example: >> >> boxGeode->addDrawable(new osg::ShapeDrawable(new osg::Box(center, lx, ly, >> lz))); >> >> now renders triangles instead of quads .. >> >> Is there an easy way to render the wireframe mode 'as-if' quads are used? >> > > You could make a wireframe box using GL_LINE_LOOP and GL_LINE_STRIP > primitives. osgWorks (osgworks.googlecode.com) has a convenience routine > for this; see osgwTools/Shapes.cpp/.h. > -Paul > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

