Re: [osg-users] How to draw 3D cylinder and 3D band?
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 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@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to draw 3D cylinder and 3D band?
Hi Daven, no screenshot came through, but I think I understand what you want to do. You will have to construct the geometry yourself. Please have a look at the osggeometry example. Actually you can deform the cylinder with scaling operations, but that is not possible for the band, so you will have to generate the vertices and then join them with triangles or quads. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to draw 3D cylinder and 3D band?
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@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org