Hi Sean, On Thu, Mar 25, 2010 at 7:34 PM, Sean Spicer <[email protected]> wrote: > I came across a nasty little bug today: > > (a) Create an osg::Geometry and assign a vertex array that is an > osg::Vec4Array > (b) Try to pick with a LineSegmentIntersector > (c) CRASH
Ouch. > Digging a little bit, it looks like LineSegmentIntersector assumes > that vertex arrays are always of type osg::Vec3Array. Are there any > plans to change this ? It looks like a tedious, but not terribly > invasive change. I don't personally have plans right now, Vec3Array is the usual way to handle vertex data in OSG/OpenGL. The code certainly shouldn't crash though and we need to address this right away. Handling other data types for vertices would be one better than just fixing the crash. I'm open to suggestions, especially if others are willing to pitch in and help code them up ;-) Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

