mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 02:34:12 +02:00
refactor: don't repeat it
This commit is contained in:
@@ -14,10 +14,4 @@ function convex_intersection(shape1, shape2, epsilon = 0.0001) =
|
|||||||
[for(i = [0:leng - 1]) each _intersection_ps(shape2, [pts[i], pts[i + 1]], epsilon)]
|
[for(i = [0:leng - 1]) each _intersection_ps(shape2, [pts[i], pts[i + 1]], epsilon)]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
convex == [] ? [] : convex_ct_clk_order(
|
convex == [] ? [] : convex_ct_clk_order(convex);
|
||||||
concat(
|
|
||||||
[for(p = shape1) if(in_shape(shape2, p, include_edge = true)) p],
|
|
||||||
[for(p = shape2) if(in_shape(shape1, p, include_edge = true)) p],
|
|
||||||
[for(i = [0:leng - 1]) each _intersection_ps(shape2, [pts[i], pts[i + 1]], epsilon)]
|
|
||||||
)
|
|
||||||
);
|
|
Reference in New Issue
Block a user