> > ...except Robert has already publicly stated that the old > line segment > > and plane intersection classes are now deprecated. In light > of that, I > > would not advise developing any new code that uses them. > > > > > I don´t think so. It´s the osgUtil::IntersectionVisitor > that´s deprecated. The LineSegmentIntersector and > PlaneIntersector are both quite new and derived, like the > polytopeIntersector you use, from osgUtil::Intersector.
Oh, my mistake. Sorry I misunderstood. (The naming scheme is so similar between the new and the deprecated classes, it's confusing.) > > The best solution is to not use ShapeDrawables -- ever. > They are not > > well supported for anything other than drawing. > > > The osg needs some replacement for standard-shapes like > included in glut. In my case, the shapeDrawables do what I > want, and thus I will use them! If all you need to do is render, that's great. But there's a significant amount of code, both in OSG and external projects that use OSG, that dynamic_cast Drawables to Geometry objects, and if the cast fails, the code does nothing. So, you've been warned. :-) I think ShapeDrawables are an excellent illustration of how to derive a custom Drawable in OSG. And, as this thread shows, they also demonstrate how custom Drawables have their limitations. It'd be trivial to implement sphere, cone, box, and cylinder using the Geometry class. -Paul _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

