Re: [osg-users] LineSegmentIntersector and MODEL Frame

2020-02-03 Thread OpenSceneGraph Users
I found the problem, and it was mine. It helps if I attach my root node to the scene BEFORE I try to insect with it. ;) On Monday, February 3, 2020 at 1:04:10 PM UTC-5, Nonsanity wrote: > > Thanks. I had thought to apply the visitor to the scene, but GetScene() > didn't have Accept(). With your

Re: [osg-users] LineSegmentIntersector and MODEL Frame

2020-02-03 Thread OpenSceneGraph Users
Thanks. I had thought to apply the visitor to the scene, but GetScene() didn't have Accept(). With your confirmation that using the scene was correct, I found that viewer.getSceneData()->accept( iv ) did exist. However, calling that line just results in a segfault. The rest of the code is the

Re: [osg-users] LineSegmentIntersector and MODEL Frame

2020-02-03 Thread OpenSceneGraph Users
Hi Chris, I guess you want the scene to accept the IntersectionVisitor, not the camera. Laurens. On Sat, Feb 1, 2020 at 1:18 PM OpenSceneGraph Users < osg-users@lists.openscenegraph.org> wrote: > I have a scene built with a few objects loaded, the most pertinent one > being a large plane surface

[osg-users] LineSegmentIntersector and MODEL Frame

2020-02-01 Thread OpenSceneGraph Users
I have a scene built with a few objects loaded, the most pertinent one being a large plane surface centered at the origin. I want to cast a ray from a particular point at a particular angle inside the scene and get a list of everything it intersects—both the point of intersection and the Node