Re: [osg-users] Extend LineSegmentIntersector : where to start ?

2011-10-12 Thread Aurelien Albert
If it walks like a duck and quacks like a duck it's a duck :-) In my case, it walks like a dog but it quacks like a duck, so it's probably a dock... We compute line-geometry intersections, and the only special case is when geometry is made of lines : in this situation, we have to consider

Re: [osg-users] Extend LineSegmentIntersector : where to start ?

2011-10-11 Thread Robert Osfield
Hi Aurelien, You can't computationally intersect infinitely thin lines with with infinitely thin line segments so what you are asking specifically isn't possible. What you are probably after is intersecting a scene with a cone or cylinder rather a line segment. Is is that you are implementing

Re: [osg-users] Extend LineSegmentIntersector : where to start ?

2011-10-11 Thread Aurelien Albert
Hi, You can't computationally intersect infinitely thin lines with with infinitely thin line segments so what you are asking specifically isn't possible. We use an algorithm with a intersection distance parameter : if minimum distance between the two lines (or segment, or line/segment) is

Re: [osg-users] Extend LineSegmentIntersector : where to start ?

2011-10-11 Thread Robert Osfield
HI Aurelien, On Tue, Oct 11, 2011 at 7:08 PM, Aurelien Albert aurelien.alb...@alyotech.fr wrote: We use an algorithm with a intersection distance parameter : if minimum distance between the two lines (or segment, or line/segment) is below this minimum, we consider that the lines intersect.