|
14 | 14 | // - DENT_COVER |
15 | 15 | // - OVERVIEW (both parts above) |
16 | 16 |
|
17 | | -PART = "ADAPTER"; |
| 17 | +PART = "OVERVIEW"; |
18 | 18 |
|
19 | 19 |
|
20 | 20 | // ------------------ |
@@ -157,18 +157,35 @@ module adapter() { |
157 | 157 |
|
158 | 158 | module dent_cover() { |
159 | 159 | // ---- Dent Cover ---- |
160 | | - translate([top_dent_x_offset, |
161 | | - box_inner_height/2 + box_wall_thickness*4, |
162 | | - plate_thickness+box_wall_thickness+dent_depth*0.8]) |
163 | | - rounded_box_y(dent_width, |
| 160 | + |
| 161 | + translate([0, |
| 162 | + 0, |
| 163 | + plate_thickness+box_inner_depth*2]) |
| 164 | + /* rounded_box_y(dent_width, |
164 | 165 | box_wall_thickness*2, |
165 | 166 | dent_depth*0.8, |
166 | 167 | dent_corner_radius); |
167 | 168 |
|
168 | 169 | translate([0, |
169 | 170 | box_inner_height/2 + box_wall_thickness*4 + box_wall_thickness, |
170 | 171 | plate_thickness+box_wall_thickness/2+box_inner_depth/2]) |
171 | | - cube([box_inner_width - box_corner_radius*2, box_wall_thickness, box_inner_depth], center = true); |
| 172 | + //cube([box_inner_width - box_corner_radius*2, box_wall_thickness, box_inner_depth], center = true); |
| 173 | + */ |
| 174 | + difference() { |
| 175 | + // Outer shell — rounded vertical corners |
| 176 | + rounded_box(box_outer_width+box_wall_thickness*2, |
| 177 | + box_outer_height+box_wall_thickness*2, |
| 178 | + box_outer_depth, |
| 179 | + box_corner_radius); |
| 180 | + // Inner cavity (open top) — rounded to match wall thickness |
| 181 | + translate([0, 0, 0]) |
| 182 | + rounded_box(box_inner_width+box_wall_thickness*2, |
| 183 | + box_inner_height+box_wall_thickness*2, |
| 184 | + box_inner_depth*1.2, // ensures full subtraction |
| 185 | + max(0.1, box_corner_radius - box_wall_thickness)); |
| 186 | + |
| 187 | + |
| 188 | + } |
172 | 189 | } |
173 | 190 |
|
174 | 191 |
|
|
0 commit comments