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

2017-01-05 Thread Robert Osfield
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

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

2017-01-04 Thread Alberto Luaces
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 h

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

2017-01-03 Thread Daven Hem
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 defi