[osg-users] Crash due to "Triangle Functor does not support Vec3d* vertex arrays"
Night Hawk
nighthawkmailbox at googlemail.com
Mon Mar 3 14:31:59 PST 2008
Hello all,
I wanted to use the osgUtil::LineSegmentIntersector::Intersections() as
described in the OSGPick example to list the objects under Mouse.
However, app started crashing in
0961e07c 5fa9934e osg30_osgUtild!osg::Vec3f::operator==(class osg::Vec3f * v
= 0x0000000c)+0x1a
0961e2c0 5fa9a9a6 osg30_
osgUtild!LineSegmentIntersectorUtils::TriangleIntersector::operator()(class
osg::Vec3f * v1 = *0x00000000*, class osg::Vec3f * v2 = 0x0000000c, class
osg::Vec3f * v3 = 0x000000e4, bool treatVertexDataAsTemporary = false)+0x3e
After debugging, finally found the culprit to be:
virtual void setVertexArray(unsigned int,const Vec3d*)
{
notify(WARN)<<"Triangle Functor does not support Vec3d* vertex
arrays"<<std::endl;
}
I am using Vec3D geometry nodes and SetVertexArray is not defined for that
type !!
Would like to know the reason behind this and What are the alternatives?
Why is the setVertexArray not defined for the double vec type and how to use
TriangleFunctor with LineSegment Intersections with that type.
Thank you for the help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080304/ec962d90/attachment.html
More information about the osg-users
mailing list