mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 14:27:45 +02:00
delegated to rotate_extrude directly
This commit is contained in:
@@ -15,7 +15,11 @@ include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
|
||||
module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, triangles = "SOLID") {
|
||||
|
||||
if(angle == 360 && twist == 0 && scale == 1.0) {
|
||||
rotate_extrude()
|
||||
translate([radius, 0, 0])
|
||||
polygon(shape_pts);
|
||||
} else {
|
||||
a_step = 360 / __frags(radius);
|
||||
|
||||
angles = __is_vector(angle) ? angle : [0, angle];
|
||||
@@ -54,4 +58,6 @@ module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, tria
|
||||
cross_sections(shape_pts, all_points, all_angles, twist, scale),
|
||||
triangles = triangles
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user