mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-25 23:46:32 +02:00
format
This commit is contained in:
@@ -77,12 +77,12 @@ module fidget_star(model, r1, r2, n, number_of_stars, height, thickness, spacing
|
||||
difference() {
|
||||
linear_extrude(ring_thickness, scale = 1.02)
|
||||
offset(ring_thickness / 3, $fn = n)
|
||||
offset(delta = -thickness)
|
||||
star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]);
|
||||
offset(delta = -thickness)
|
||||
star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]);
|
||||
|
||||
linear_extrude(thickness * 4, center = true)
|
||||
offset(delta = -ring_thickness)
|
||||
star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]);
|
||||
offset(delta = -ring_thickness)
|
||||
star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ if(model == "JOIN") {
|
||||
color("white")
|
||||
rotate(-5)
|
||||
translate([-(r_circumscribed_circle - width / 2), 0, 0])
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
}
|
||||
else if(model == "RING") {
|
||||
color("black")
|
||||
@@ -71,18 +71,18 @@ else {
|
||||
|
||||
color("white")
|
||||
for(h = [0:2:n - 2]) {
|
||||
translate([0, 0, layer_h * (h)])
|
||||
rotate((h) * 5) {
|
||||
translate([0, 0, layer_h * h])
|
||||
rotate(h * 5) {
|
||||
for(i = [0:2]) {
|
||||
rotate(i * 120)
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
}
|
||||
|
||||
translate([0, 0, layer_h])
|
||||
rotate(65)
|
||||
for(i = [0:2]) {
|
||||
rotate(i * 120)
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
join(r_circumscribed_circle, width, height, layer_h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user