mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 06:47:46 +02:00
check if coplanar
This commit is contained in:
@@ -31,6 +31,7 @@ function __line_intersection3(line_pts1, line_pts2, ext, epsilon = 0.0001) =
|
|||||||
b = b2 - b1,
|
b = b2 - b1,
|
||||||
c = cross(a, b)
|
c = cross(a, b)
|
||||||
)
|
)
|
||||||
|
cross(a, b1 - a1) * (b2 - a1) != 0 || // they aren't coplanar
|
||||||
norm(c) < epsilon ? [] : // they are parallel or conincident edges
|
norm(c) < epsilon ? [] : // they are parallel or conincident edges
|
||||||
let(
|
let(
|
||||||
t = v_scalar(cross(b1 - a1, b), c),
|
t = v_scalar(cross(b1 - a1, b), c),
|
||||||
|
Reference in New Issue
Block a user