mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 22:37:35 +02:00
prepared for supporting round-robin
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
module path_extend(stroke_pts, path_pts, scale = 1.0) {
|
module path_extend(stroke_pts, path_pts, scale = 1.0, round_robin = false) {
|
||||||
function length(p1, p2) =
|
function length(p1, p2) =
|
||||||
let(
|
let(
|
||||||
x1 = p1[0],
|
x1 = p1[0],
|
||||||
@@ -63,8 +63,11 @@ module path_extend(stroke_pts, path_pts, scale = 1.0) {
|
|||||||
[stroke(path_pts[index - 1], path_pts[index], index)],
|
[stroke(path_pts[index - 1], path_pts[index], index)],
|
||||||
path_extend_inner(index + 1)
|
path_extend_inner(index + 1)
|
||||||
);
|
);
|
||||||
|
if(round_robin && path_pts[0] == path_pts[leng_path_pts - 1]) {
|
||||||
polytransversals(
|
|
||||||
concat([first_stroke()], path_extend_inner(1))
|
} else {
|
||||||
);
|
polytransversals(
|
||||||
|
concat([first_stroke()], path_extend_inner(1))
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user