Hi Lucie,

You can fill an osg::Geometry by computing yourself the vertices position.
take a look to osggeometry to know how to use and fill osg::Geometry.

You can also use an osg::Shape combined with osg::ShapeDrawable
to draw a half sphere. Take a look to osgshape to know how to use osg::Shape
and osg::ShapeDrawable.
And take a look to osg::DrawShapeVisitor::drawHalfSphere(...) which do what
you want.

Don't forget that osg::Shape is not an optimized way to draw a geometry.
osg::Geometry is a better solution by need more work from you.

HTH
David Callu


2011/1/3 lucie lemonnier <[email protected]>

> Hi,
>
> I want to draw a partial torus, I know the center, the starting angle, the
> angle of arrival, the minimum radius and maximum radius.
> I want to draw also a half sphere!
> Can you help me?
>
> Thank you!
>
> Cheers,
> lucie
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35268#35268
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to