1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00
This commit is contained in:
Justin Lin
2019-09-19 15:47:19 +08:00
parent eb9b13841f
commit 4d5cf0e59b

View File

@@ -11,7 +11,6 @@
include <__comm__/__frags.scad>;
module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {
is_flt = is_num(size);
x = is_flt ? size : size[0];
y = is_flt ? size : size[1];
@@ -28,8 +27,7 @@ module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {
h = (round_r - pre_h) - round_r * cos(current_a);
d_leng =
round_r * (sin(current_a) - sin(step_a * (i - 1)));
d_leng = round_r * (sin(current_a) - sin(step_a * (i - 1)));
sx = (d_leng * 2 + wx) / wx;
sy = (d_leng * 2 + wy) / wy;