diff --git a/Test/FaceIntersectCommand.cs b/Test/FaceIntersectCommand.cs index b0648ee..ce9acf0 100644 --- a/Test/FaceIntersectCommand.cs +++ b/Test/FaceIntersectCommand.cs @@ -149,7 +149,7 @@ private static XYZ Intersection(XYZ A, XYZ B, XYZ P, XYZ Q) { double x = (B2 * C1 - B1 * C2) / determinant; double y = (A1 * C2 - A2 * C1) / determinant; - return new XYZ(x, y,A.Z); + return new XYZ(x, y,P.Z); } }