mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-29 17:30:11 +02:00
refactor
This commit is contained in:
@@ -23,7 +23,7 @@ module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
|
|||||||
|
|
||||||
center_pt = center ? [0, 0, 0] : [0, 0, h/2];
|
center_pt = center ? [0, 0, 0] : [0, 0, h/2];
|
||||||
|
|
||||||
translate(center ? [0, 0, 0] : [0, 0, h/2])
|
translate(center_pt)
|
||||||
rotate(180)
|
rotate(180)
|
||||||
rotate_extrude(convexity = convexity)
|
rotate_extrude(convexity = convexity)
|
||||||
polygon(shape_pts);
|
polygon(shape_pts);
|
||||||
|
Reference in New Issue
Block a user