1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 20:40:28 +02:00

don't use hull

This commit is contained in:
Justin Lin
2022-08-13 17:16:54 +08:00
parent a403ca060e
commit 795c7c0a87

View File

@@ -9,8 +9,7 @@ spacing = 1;
slope = 0.65; slope = 0.65;
base_height = height * 1.75; base_height = height * 1.75;
rotate(90) fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness, spacing, slope, base_height);
fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness, spacing, slope, base_height);
module fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness, spacing, slope, base_height) { module fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness, spacing, slope, base_height) {
@@ -121,6 +120,12 @@ module fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness,
circle(beginning_radius / 2.5); circle(beginning_radius / 2.5);
} }
} }
module eye_socket() {
translate([0, 0, -half_height])
linear_extrude(half_height, scale = s[n - 1])
drawPolygon(rs[n - 1]);
}
difference() { difference() {
union() { union() {
@@ -129,18 +134,16 @@ module fidget_skull(beginning_radius, fn, number_of_polygons, height, thickness,
skull(); skull();
} }
translate([0, rs[len(rs) - 1]] * 1.1) translate([0, rs[len(rs) - 1]] * 1.1) {
hull() { eye_socket();
half();
mirror([0, 0, 1]) mirror([0, 0, 1])
half(); eye_socket();
} }
translate([0, -rs[len(rs) - 1]] * 1.1) translate([0, -rs[len(rs) - 1]] * 1.1) {
hull(){ eye_socket();
half();
mirror([0, 0, 1]) mirror([0, 0, 1])
half(); eye_socket();
} }
} }
} }