HI Peter,

I'm afraid I've not got enough time available to look into this
problem right now, hopefully others can dive in.  My suspicision is
that due to nuermical precision issues on constructing the linesegment
and/or intersecting this with the bonding volumes or meshes you aren't
always getting the intersections you expect.  A quick hack to test
this would be to rotate the mesh slightly so nothing is axis aligned -
this way the mesh won't be setting on the face of the bounding volume.
 If this hack does prove to address the problem then it points the
need of doing interesection testing with error bars that are larger
than the numberic precision errors.

Robert.

On 23 October 2012 09:21, Peter Bako <osgfo...@tevs.eu> wrote:
> I use the LineSegmentIntersector in my application to select planar faces. 
> The problem is that sometimes when I click on the "face facing to you" (check 
> the red "X"es on the picture), I get no intersection of this face. I get only 
> an intersection on the face which is "not visible" from this view - the 
> bottom face.
> Then sometimes it happens, that the user wants to select a face, but an 
> "invisible face" is selected instead, but he doesn't know it because he 
> doesn't see it, even if its highlighted.
>
> i made this sample application to simulate my problem - when I click on the 
> positions where the red crosses are, normally I should get 2 intersections - 
> first the face where I drew the red crosses and then to bottom face which we 
> don't see. Sometimes, I get only the second (see the debug output on the 
> picture).
>
> I think this is a problem.
>
> Thank you!
>
> Cheers,
> Peter
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=50727#50727
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to