Hi Fred,

I'm not sure what to make of the results or what you are expecting.
The IntersectionVistor/LineSegmentIntersector should return multiple
intersection, one for each intersection between any triangle and the
line segment - so if there a two overlapping triangles I would expect
two intersections.

You don't say how you are doing picking with this model, so I'm not
sure how the model can help others recreate what you are seeing.

Robert.

On Thu, Dec 3, 2009 at 10:21 AM, Fred Smith <[email protected]> wrote:
> The picking problem can be reproduced with the following OSG content, 
> containing only 2 triangles:
>
>
> Code:
>
> Geode {
>  nodeMask 0xffffffff
>  cullingActive TRUE
>  num_drawables 1
>  Geometry {
>    UniqueID Geometry_0
>    DataVariance STATIC
>    useDisplayList TRUE
>    useVertexBufferObjects FALSE
>    PrimitiveSets 1
>    {
>      DrawElementsUInt TRIANGLES 6
>      {
>        0 1 2 3 4 5
>      }
>    }
>    VertexArray Vec3Array 6
>    {
>      5455 -1704.02 1112.38
>      5455 -1607.33 1317.42
>      5455 -1691.17 1088.37
>      5457.5 -1608.46 1304.84
>      5457.5 -1704.02 1112.38
>      5457.5 -1691.17 1088.37
>    }
>    NormalBinding PER_VERTEX
>    NormalArray Vec3Array 6
>    {
>      -1 0 0
>      -1 0 0
>      -1 0 0
>      1 0 0
>      1 0 0
>      1 0 0
>    }
>  }
> }
>
>
>
>
> Refer to the attached picture for how to reproduce the issue.
> Again, balls represent intersection points, lines are normal vectors.
>
> The ball showing up on the right triangle is unexpected - I picked the left 
> triangle.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=20798#20798
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to