Hi Peter,
KdTree is currently only handles line segment intersections, this is
provided directly in the internals.
To implement other types of intersections one would either need to add
it directly to KdTree as has been done with the line segment
intersection or have an external traverser class that walks through
the KdTree.
Robert.
On 16 November 2011 12:02, Peter Wraae Marino wrote:
> Hi,
>
> I have create a sphereintersector which works fine, but goes through all
> triangles on the geometry.
>
> I would like to use the kdTree to help me to do a sphere - triangle
> intersection tests on as few triangles as possible.
>
> Is this possible? When I look at the kdTree object it looks like it is
> hardcoded to handle only line segments?
>
> anyone have some comments on this?
>
> Thank you!
>
> Cheers,
> Peter
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=43908#43908
>
>
>
>
>
> ___
> 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