mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
format
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
include <__comm__/__frags.scad>;
|
include <__comm__/__frags.scad>;
|
||||||
|
|
||||||
module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {
|
module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {
|
||||||
|
|
||||||
is_flt = is_num(size);
|
is_flt = is_num(size);
|
||||||
x = is_flt ? size : size[0];
|
x = is_flt ? size : size[0];
|
||||||
y = is_flt ? size : size[1];
|
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);
|
h = (round_r - pre_h) - round_r * cos(current_a);
|
||||||
|
|
||||||
d_leng =
|
d_leng = round_r * (sin(current_a) - sin(step_a * (i - 1)));
|
||||||
round_r * (sin(current_a) - sin(step_a * (i - 1)));
|
|
||||||
|
|
||||||
sx = (d_leng * 2 + wx) / wx;
|
sx = (d_leng * 2 + wx) / wx;
|
||||||
sy = (d_leng * 2 + wy) / wy;
|
sy = (d_leng * 2 + wy) / wy;
|
||||||
|
Reference in New Issue
Block a user