Hi Aerkis, all the intersection routines you find under osgUtil are meant just to find intersection (picking being the most common usage), not to clip polygons. For that purpose you should instead look at osg::ClipPlane/ClipNode which implement GL clipping.
I don't think there's a routine which clips by a bb extents, you should implement that by using 6 different clipping planes yourself. See osgClip example for a reference. HTH, Ricky On Wed, Jul 7, 2010 at 10:14, Baptiste Souli <[email protected]> wrote: > Hello, > > I have a scene and i would like to clip considering a bounding box (i.e > cut the polygon at the border and eliminate the outside elements). > Does there already exist in osg an implementation to calculate the > interesection with a boudingbox (or a plane) or must I implement it? > I have found PolytopeIntersector but I don't know if it calculate the > intersection or just return the vertex in the boundingbox). > > Thanks. > Aerkis. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29772#29772 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

