mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
prepared for supporting round-robin
This commit is contained in:
parent
e68a70a21d
commit
e4b6e3abed
@ -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) =
|
||||
let(
|
||||
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)],
|
||||
path_extend_inner(index + 1)
|
||||
);
|
||||
|
||||
polytransversals(
|
||||
concat([first_stroke()], path_extend_inner(1))
|
||||
);
|
||||
if(round_robin && path_pts[0] == path_pts[leng_path_pts - 1]) {
|
||||
|
||||
} else {
|
||||
polytransversals(
|
||||
concat([first_stroke()], path_extend_inner(1))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user