1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +02:00
This commit is contained in:
Justin Lin
2019-09-26 08:18:58 +08:00
parent b56c516fe7
commit 954948480b

View File

@@ -14,8 +14,8 @@ include <__comm__/__ra_to_xy.scad>;
module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, triangles = "SOLID") {
if(twist == 0 && scale == 1.0) {
rotate_extrude(angle = angle)
translate([radius, 0, 0])
polygon(shape_pts);
translate([radius, 0, 0])
polygon(shape_pts);
} else {
a_step = 360 / __frags(radius);