On 2/23/2011 7:45 PM, Jean-Sébastien Guay wrote:
>> My main reason for wanting to create Geometry is that I need to divide the 
>> Cylinder
>> object into primitives for further processing and the parser that I had 
>> written doesn't
>> seem to work with an osg file created from ShapeDrawable.
>> So I inferred that I need to create geometry rather than shape drawable to 
>> obtain
>> primitives.
> OK, so you'll have to find some code to create a cylinder geometry. As I said 
> the
> ShapeDrawable.cpp could be a pretty good starting point.

I think osgWorks:
http://code.google.com/p/osgworks/

might have what you need:

"osg::Geometry-based utility functions to render rudimentary shapes such as 
planes, boxes,
spheres, and arrows."

If it doesn't, perhaps this would be a good place for you to add it, so 
everyone could
benefit.

> J-S

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to