Intersection between 3D lines

Is there any way to compute the intersection of two 3D lines? There is implimentation of curve curve intersection in OCC but only for 2D. What is happen with 3D lines?

MCV's picture

Hi,

most recently I encountered the same problem.

Here is the solution: Think in extremal distances (minimum and maximum distance of 2 points on 2 different Curves):

GeomAPI_ExtremaCurveCurve

Check out: http://www.opencascade.org/doc40/geometryutilities/p_18_3.htm

It is the same for OCC 5.0 and 5.01

Have fun and good luck.

MCV