[osg-users] Best Way to Make a Toroid Geode

Erik Hensens ehensens at hunter.com
Wed Jul 22 07:59:17 PDT 2015


Thanks Robert!

Does this mean that I could just use quads, i.e. approximate a circle with a many-sided polygon and make four quads for each polygon side, one for the top surface, one for the outer side surface, one for the inside surface, and one for the bottom surface?

That was my first idea but I figured that maybe someone out there would tell me I'm doing it wrong or at least not being efficient.

Erik


robertosfield wrote:
> Hi Erik,
> 
> 
> The way to create such a geometry would be to create the vertex and primitive data directly and place them in an osg::Geometry.  See the osggeometry example.
> 
> 
> Robert.
> 
> 
> On 22 July 2015 at 15:29, Erik Hensens < ()> wrote:
> 
> > Hello all!
> > 
> > I'm no OSG expert by any stretch of the imagination, so maybe this question has a really simple answer. If so, I apologize.
> > 
> > What is the best/proper way to construct a geode in the shape of a toroid? In particular, I'm trying to create a square-toroid, think of a pipe: a cylinder with a cylindrical hole through it. See the following Wikipedia image to get an idea of the shape I need to create:
> > 
> > https://upload.wikimedia.org/wikipedia/commons/9/9f/Toroid_by_Zureks.svg (https://upload.wikimedia.org/wikipedia/commons/9/9f/Toroid_by_Zureks.svg)
> > 
> > Thanks in advance for any help!
> > 
> > Erik
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=64426#64426 (http://forum.openscenegraph.org/viewtopic.php?p=64426#64426)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64429#64429








More information about the osg-users mailing list