The original post (even though the subject said vector) specified a position and direction for the "vector" (so a line was implied).

I can't find a LineSegmentIntersector class in the documentation and the osg::LineSegment class doesn't have a method for finding the intersection point, so since ti doesn't exist, I will just do the calculations.

Andreas Goebel wrote:
Hi,

it doesn´t make sense to talk of an vector intersecting a plane.

A vector is just a direction, it has no fixed position in space. You can intersect a plane with a line or a segment, but not with a vector

To intersect with a line you can use the LineSegmentINtersector or do basic vector calculations yourself.

Regards,

Andreas

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to