1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 14:04:53 +02:00

stick offset

This commit is contained in:
Justin Lin
2021-06-16 12:01:58 +08:00
parent 179804d936
commit 0607811c6c

View File

@@ -1,6 +1,6 @@
model = "POLYGON"; // [POLYGON, BASE, BOTH] model = "POLYGON"; // [POLYGON, BASE, BOTH]
beginning_radius = 7.5; beginning_radius = 7.5;
fn = 4; fn = 5;
number_of_polygons = 10; number_of_polygons = 10;
height = 20; height = 20;
thickness = 1; thickness = 1;
@@ -97,7 +97,7 @@ module fidget_polygon(model, beginning_radius, fn, n, height, thickness, spacing
stick_h = base_height - ring_thickness; stick_h = base_height - ring_thickness;
for(i = [0:fn - 1]) { for(i = [0:fn - 1]) {
rotate(360 / fn * i) rotate(360 / fn * i)
translate([d, 0, off_h]) translate([d + thickness * 1.5, 0, off_h])
rotate(a) { rotate(a) {
linear_extrude(stick_h) linear_extrude(stick_h)
circle(stick_r, $fn = fn); circle(stick_r, $fn = fn);