[osg-users] How to draw 3D cylinder and 3D band?

Robert Osfield robert.osfield at gmail.com
Thu Jan 5 03:14:50 PST 2017


Hi Daven,

Have a look at the osggeometry and osgshape examples as these cover the topics.

Robert.

On 4 January 2017 at 01:44, Daven Hem <osgforum at tevs.eu> wrote:
> Happy New Year, everybody!
>
> I’m Daven Hem, OSG beginner in Cambodia.
> I want to draw 3D cylinder and 3D band which is made from centered line.
> I have two problems I have to solve with OpenSceneGraph.
>
>         Create a 3D line which is defined by N vertices.
> -       Create a 3D cylinder which is defined by 3D line.
>         Its section is radial. Users can change the radius of its section.
> -       Create a 3D band which is defined by 3D line.
>         Its section is rectangular. Users can change width and height of its section.
>         In some cases, its section is also line. Users can change only width.
>
> These 3D cylinder and band are created along the 3D line. 3D line should be laid center in these geometry.
> Just for your information, the green solid geometry is 3D band, and you see 3D cylinder in the middle of that in the following screenshot.
>
> Thank you!
>
> Cheers,
> Daven
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69848#69848
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list