Re: Line-Line-Segmentation in 3-Dimensions



In article <dvu193$h0$00$1@xxxxxxxxxxxxxxxxx>, Laube@xxxxxxxxxxxx
says...
Hello Everybody.

In my Project, i have to calculate line-line-Segmentations with quite
small lines and close distances. I tried to use the 2D
Intersection-algorithmn, described in Dave Eberleys book "Geometric
Tools for Computer Graphics", but it seems to be not exact enough. Maybe
the Problem is that i rotate the Lines onto the X-Y-Plane by a
rotationMatrix, which seems not 100%precise (sometimes, the of a Point
z-Value is ~1.0E-6 after the Rotation with the Matrix).
So my Question is: is there a algorithm to Calculate the Cutpoint of two
Lines in 3D (if it exists) without working in 2D?

Like others have said, the problem is such that it nearly never happens.
In these situations it is usual to cast the problem into another similar
problem where one can use an epsilon value to control accuracy. For
example, to tell if two lines intersect, we could compute their distance
and state that if the distance is less than 0.001, then we consider the
lines intersecting.

To cast your problem into this kind of another problem you have to
define what the "cutpoint" means if the lines do not actually intersect.
This is in analog to my definition of intersection above.

--
Kalle Rutanen
http://kaba.hilvi.org
.



Relevant Pages

  • Re: distance between planes
    ... eigenvectors, which I Calculated from covariance matrix of my 16 5-d ... I was planning to calculate the distance between the planes. ... In general the lines must intersect at some point. ...
    (comp.soft-sys.matlab)
  • Re: Geometric Transformation Question
    ... take a compass and draw a circle centered at P of radius r. ... This circle will intersect ... one of the lines, say l, if the r is larger than the distance from P ...
    (sci.math)
  • Re: distance control
    ... The two endpoints of a line segment can each ... have an coordinate, but a distance can't. ... intersect a curve or contour, but a distance can't - it doesn't make ...
    (comp.soft-sys.matlab)
  • Re: Minimum distance from a point to a surface defined by constraints
    ... each constraint defines a half-plane. ... Assuming they intersect at all ... get the distance from P to each vertex. ... This should translate naturally into more dimensions, ...
    (sci.math)
  • Re: Minimum distance from a point to a surface defined by constraints
    ... each constraint defines a half-plane. ... Assuming they intersect at all ... get the distance from P to each vertex. ... This should translate naturally into more dimensions, ...
    (sci.math.num-analysis)