mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
avoid p1 == p2
This commit is contained in:
@@ -42,6 +42,7 @@ function _lines(t, codes, angle, leng) =
|
|||||||
i = i + 1,
|
i = i + 1,
|
||||||
t2 = _next_t2(t1, codes[i], angle, leng)
|
t2 = _next_t2(t1, codes[i], angle, leng)
|
||||||
)
|
)
|
||||||
if(search(codes[i], "F+-") != [])
|
let(p1 = turtle2d("pt", t1), p2 = turtle2d("pt", t2))
|
||||||
[turtle2d("pt", t1), turtle2d("pt", t2)]
|
if(search(codes[i], "F+-") != [] && p1 != p2)
|
||||||
|
[p1, p2]
|
||||||
];
|
];
|
@@ -46,6 +46,7 @@ function _lines(t, codes, angle, leng) =
|
|||||||
i = i + 1,
|
i = i + 1,
|
||||||
t2 = _next_t2(t1, codes[i], angle, leng)
|
t2 = _next_t2(t1, codes[i], angle, leng)
|
||||||
)
|
)
|
||||||
if(search(codes[i], "F+-") != [])
|
let(p1 = turtle3d("pt", t1), p2 = turtle3d("pt", t2))
|
||||||
|
if(search(codes[i], "F+-") != [] && p1 != p2)
|
||||||
[turtle3d("pt", t1), turtle3d("pt", t2)]
|
[turtle3d("pt", t1), turtle3d("pt", t2)]
|
||||||
];
|
];
|
Reference in New Issue
Block a user