1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00
This commit is contained in:
Justin Lin
2019-09-26 08:15:50 +08:00
parent 348f04b10f
commit f9f22d9fc2

View File

@@ -45,21 +45,23 @@ module ellipse_extrude(semi_minor_axis, height, center = false, convexity = 10,
z = f_extrude[i][1];
translate([0, 0, pre_zs[i]])
rotate(-twist / slices * i)
linear_extrude(
z - pre_zs[i],
convexity = convexity,
twist = twist / slices,
slices = 1,
scale = f
) scale(child_fs[i]) children();
rotate(-twist / slices * i)
linear_extrude(
z - pre_zs[i],
convexity = convexity,
twist = twist / slices,
slices = 1,
scale = f
)
scale(child_fs[i])
children();
}
}
center_offset = [0, 0, center == true ? -h / 2 : 0];
translate(center_offset)
extrude()
children();
extrude()
children();
// hook for testing
test_ellipse_extrude_fzc(child_fs, pre_zs, center_offset);