The code I hav is as below:

Every .ive file loads a line object around which I want to draw a cylinder 
keeping that line as center. 


Code:
int main( int argc, char **argv )
{
  osg::ref_ptr<osg::Group> root = new osg::Group();
  osg::ref_ptr<osg::Node> pipe1;
  osg::ref_ptr<osg::Node> pipe2;
....
....
....
  pipe1 = osgDB::readNodeFile("pipes_out1.ive"); 
  pipe2 = osgDB::readNodeFile("pipes_out2.ive");
  pipe3 = osgDB::readNodeFile("pipes_out3.ive");
....
....
....
  root->addChild(pipe1.get());
  root->addChild(pipe2.get());
  root->addChild(pipe3.get());
....
  while(!viewer.done())
 {...loop...}
..
} //main()




Thanks,
Sanat

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32820#32820





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to