Geometry Intersection LineAndPlane - HiStructClient/femcad-doc GitHub Wiki

Intersection of line and plane

LCS

lcs1 = GCS.Tx(3)
lcs2 = GCS.Rz(Math.PI/4)

Line AB (two points)

A = lcs2.Origin
B = lcs2.Origin+4*lcs2.Axes.X

Plane ON (point and normal)

O = lcs1.Origin
N = lcs1.Axes.X

Get the object of intersection result

inters1       := Fcs.Geometry.Intersection.LineAndPlane(A,B,O,N)
exists1       := inters1.Exists
areParallel   := inters1.AreParallel
areOrthogonal := inters1.AreOrthogonal
intersectionP := inters1.P

The resulting intersection point is stored in inters1.P field