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

Daven Hem osgforum at tevs.eu
Tue Jan 3 17:44:46 PST 2017


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







More information about the osg-users mailing list