paul@0 | 1 | module cartridge() |
paul@0 | 2 | { |
paul@0 | 3 | $fn = 50; |
paul@0 | 4 | |
paul@3 | 5 | /* Rounding/fillet radius and additional margin of subtracted |
paul@3 | 6 | material. The additional margin helps avoid geometry |
paul@3 | 7 | problems. */ |
paul@3 | 8 | |
paul@3 | 9 | rr = 1; |
paul@3 | 10 | ro = rr; |
paul@3 | 11 | extra = 0.1; |
paul@3 | 12 | |
paul@0 | 13 | module fillet(r, h) { |
paul@0 | 14 | translate([0, 0, -h/2]) |
paul@0 | 15 | difference() { |
paul@12 | 16 | cube([r + extra, r + extra, h + extra]); |
paul@0 | 17 | cylinder(r = r, h = h); |
paul@0 | 18 | } |
paul@0 | 19 | } |
paul@0 | 20 | |
paul@0 | 21 | /* Cartridge dimensions. */ |
paul@0 | 22 | |
paul@0 | 23 | width = 89.0; |
paul@0 | 24 | height = 68.5; |
paul@0 | 25 | depth = 16.5; |
paul@8 | 26 | front_depth = 6.5; |
paul@8 | 27 | back_depth = 11.0; |
paul@0 | 28 | |
paul@1 | 29 | /* Details. */ |
paul@1 | 30 | |
paul@1 | 31 | front_label_width = 83.0; |
paul@1 | 32 | front_label_height = 46.0; |
paul@1 | 33 | front_label_depth = 1.0; |
paul@1 | 34 | front_label_offset_from_bottom = 19.5; |
paul@3 | 35 | |
paul@1 | 36 | top_label_width = front_label_width; |
paul@1 | 37 | top_label_height = 11.5; |
paul@1 | 38 | top_label_depth = front_label_depth; |
paul@1 | 39 | top_label_offset_from_front = 2.5; |
paul@3 | 40 | |
paul@8 | 41 | groove_width = 2.5; /* how much the groove cuts out of the back */ |
paul@8 | 42 | groove_depth = 1.0; /* how deep the groove goes into each side */ |
paul@8 | 43 | top_groove_width = 1.0; |
paul@8 | 44 | top_groove_depth = 2.0; |
paul@9 | 45 | inner_top_front_cutout_width = 87.0; |
paul@9 | 46 | inner_top_front_cutout_depth = 1.0; |
paul@9 | 47 | inner_top_front_cutout_offset = 2.0; |
paul@1 | 48 | |
paul@4 | 49 | back_cavity_width = 68.0; |
paul@4 | 50 | back_cavity_inner_width = 65.0; |
paul@4 | 51 | back_cavity_offset_from_left = 10.5; |
paul@4 | 52 | back_cavity_inner_offset_from_left = 12.0; |
paul@4 | 53 | back_cavity_height = 13.5; |
paul@4 | 54 | back_cavity_inner_height = 12.0; |
paul@4 | 55 | back_cavity_depth = 1.5; |
paul@4 | 56 | |
paul@6 | 57 | inner_back_cavity_offset = 1.0; |
paul@5 | 58 | inner_back_cavity_offset_from_left = 2.0; |
paul@5 | 59 | inner_back_slope_offset_from_left = 10.0; |
paul@5 | 60 | inner_back_slope_width = 2.5; |
paul@6 | 61 | inner_back_slope_depth = 2.5; |
paul@5 | 62 | |
paul@5 | 63 | inner_back_edge_offset = 2.0; |
paul@5 | 64 | inner_back_edge_width = 69.0; |
paul@5 | 65 | inner_back_edge_height = 3.0; |
paul@5 | 66 | inner_back_edge_depth = 1.5; |
paul@5 | 67 | |
paul@7 | 68 | inner_front_edge_offset = 0.5; |
paul@7 | 69 | inner_front_edge_width = 87.0; |
paul@7 | 70 | inner_front_edge_height = 3.0; |
paul@7 | 71 | inner_front_edge_depth = 1.5; |
paul@7 | 72 | |
paul@5 | 73 | bottom_from_base = 13.5; |
paul@5 | 74 | |
paul@8 | 75 | edge_connector_cutout_front_offset = 1.0; |
paul@8 | 76 | edge_connector_cutout_front_depth = 1.0; |
paul@8 | 77 | edge_connector_cutout_front_width = 15.0; |
paul@8 | 78 | edge_connector_cutout_back_depth = 3.0; |
paul@8 | 79 | edge_connector_cutout_back_width = 57.0; |
paul@8 | 80 | |
paul@17 | 81 | /* |
paul@17 | 82 | Edge connectors are themselves 0.05" or approximately 1.27mm in |
paul@17 | 83 | thickness according to the Acorn Electron Cartridge Interface Specification |
paul@17 | 84 | (Acorn Support Application Group Note 014). |
paul@17 | 85 | */ |
paul@17 | 86 | |
paul@0 | 87 | /* Side thicknesses. */ |
paul@0 | 88 | |
paul@0 | 89 | front = 2; |
paul@0 | 90 | back = 3.5; |
paul@0 | 91 | top = 3; |
paul@8 | 92 | front_left = 1; |
paul@8 | 93 | front_right = 1; |
paul@8 | 94 | back_left = 2; |
paul@8 | 95 | back_right = 2; |
paul@5 | 96 | bottom = 2; |
paul@0 | 97 | |
paul@14 | 98 | /* Extra internal features. */ |
paul@14 | 99 | |
paul@14 | 100 | pcb_back_support_width = 1.0; |
paul@14 | 101 | pcb_back_support_depth = back_depth - |
paul@14 | 102 | edge_connector_cutout_back_depth; |
paul@14 | 103 | pcb_back_support_height = height - bottom_from_base - top - bottom; |
paul@14 | 104 | |
paul@15 | 105 | pcb_front_support_width = 1.0; |
paul@15 | 106 | pcb_front_support_depth = front_depth; |
paul@15 | 107 | pcb_front_support_height = pcb_back_support_height; |
paul@15 | 108 | |
paul@16 | 109 | /* |
paul@16 | 110 | Features measured from the Stardot Advanced Battery Backed RAM |
paul@16 | 111 | cartridge board dimensional diagram. |
paul@16 | 112 | */ |
paul@16 | 113 | |
paul@16 | 114 | pcb_back_support_bump_width = pcb_front_support_width; |
paul@18 | 115 | pcb_back_support_bump_depth = 1.5; |
paul@17 | 116 | pcb_back_support_left_bump_height = 14.3; |
paul@17 | 117 | pcb_back_support_right_bump_height = 11.7; |
paul@18 | 118 | pcb_back_support_left_bump_offset_from_bottom = 26.0 - 11.8; |
paul@18 | 119 | pcb_back_support_right_bump_offset_from_bottom = 28.6 - 11.8; |
paul@16 | 120 | |
paul@13 | 121 | translate([0, -20, 0]) |
paul@0 | 122 | difference() { |
paul@1 | 123 | |
paul@1 | 124 | /* The cartridge surfaces. */ |
paul@1 | 125 | |
paul@0 | 126 | union() { |
paul@8 | 127 | |
paul@8 | 128 | /* Front portion. */ |
paul@8 | 129 | |
paul@8 | 130 | translate([0, -front_depth + front / 2, 0]) |
paul@0 | 131 | cube([width, front, height], center = true); |
paul@8 | 132 | translate([-width / 2 + front_left / 2, -front_depth / 2, 0]) |
paul@8 | 133 | cube([front_left, front_depth, height], center = true); |
paul@8 | 134 | translate([width / 2 - front_right / 2, -front_depth / 2, 0]) |
paul@8 | 135 | cube([front_right, front_depth, height], center = true); |
paul@8 | 136 | translate([0, -front_depth / 2, height / 2 - top / 2]) |
paul@8 | 137 | cube([width, front_depth, top], center = true); |
paul@8 | 138 | difference() { |
paul@8 | 139 | translate([0, -front_depth / 2, |
paul@8 | 140 | -height / 2 + bottom / 2 + bottom_from_base]) |
paul@8 | 141 | cube([width, front_depth, bottom], center = true); |
paul@8 | 142 | translate([-width / 2 + edge_connector_cutout_front_offset + |
paul@8 | 143 | edge_connector_cutout_front_width / 2, |
paul@8 | 144 | -edge_connector_cutout_front_depth / 2, |
paul@8 | 145 | -height / 2 + bottom / 2 + bottom_from_base]) |
paul@8 | 146 | cube([edge_connector_cutout_front_width, |
paul@8 | 147 | edge_connector_cutout_front_depth, |
paul@8 | 148 | bottom + extra], center = true); |
paul@8 | 149 | translate([width / 2 - edge_connector_cutout_front_offset - |
paul@8 | 150 | edge_connector_cutout_front_width / 2, |
paul@8 | 151 | -edge_connector_cutout_front_depth / 2, |
paul@8 | 152 | -height / 2 + bottom / 2 + bottom_from_base]) |
paul@8 | 153 | cube([edge_connector_cutout_front_width, |
paul@8 | 154 | edge_connector_cutout_front_depth, |
paul@8 | 155 | bottom + extra], center = true); |
paul@8 | 156 | } |
paul@15 | 157 | |
paul@15 | 158 | /* PCB supports. */ |
paul@15 | 159 | |
paul@15 | 160 | translate([-edge_connector_cutout_back_width / 2 + |
paul@15 | 161 | pcb_front_support_width / 2, |
paul@15 | 162 | -pcb_front_support_depth / 2, |
paul@15 | 163 | -height / 2 + bottom + bottom_from_base + |
paul@15 | 164 | pcb_front_support_height / 2]) |
paul@15 | 165 | cube([pcb_front_support_width, pcb_front_support_depth, |
paul@15 | 166 | pcb_front_support_height], center = true); |
paul@15 | 167 | |
paul@15 | 168 | translate([edge_connector_cutout_back_width / 2 - |
paul@15 | 169 | pcb_front_support_width / 2, |
paul@15 | 170 | -pcb_front_support_depth / 2, |
paul@15 | 171 | -height / 2 + bottom + bottom_from_base + |
paul@15 | 172 | pcb_front_support_height / 2]) |
paul@15 | 173 | cube([pcb_front_support_width, pcb_front_support_depth, |
paul@15 | 174 | pcb_front_support_height], center = true); |
paul@10 | 175 | } |
paul@10 | 176 | |
paul@10 | 177 | /* Label insets. */ |
paul@10 | 178 | |
paul@10 | 179 | union() { |
paul@10 | 180 | |
paul@10 | 181 | /* Front label. */ |
paul@10 | 182 | |
paul@10 | 183 | translate([-front_label_width / 2, -front_depth, |
paul@10 | 184 | front_label_offset_from_bottom - height / 2]) |
paul@10 | 185 | cube([front_label_width, front_label_depth, |
paul@10 | 186 | front_label_height]); |
paul@10 | 187 | |
paul@10 | 188 | /* Top label. */ |
paul@10 | 189 | |
paul@10 | 190 | translate([-top_label_width / 2, |
paul@10 | 191 | -front_depth + top_label_offset_from_front, |
paul@10 | 192 | height / 2 - top_label_depth]) |
paul@10 | 193 | cube([top_label_width, top_label_height, |
paul@10 | 194 | top_label_depth]); |
paul@10 | 195 | } |
paul@10 | 196 | |
paul@10 | 197 | /* Inner front edge cavity. */ |
paul@10 | 198 | |
paul@10 | 199 | translate([inner_front_edge_width / 2, |
paul@10 | 200 | -front_depth + inner_front_edge_offset, -height / 2]) |
paul@10 | 201 | rotate([0, -90, 0]) |
paul@10 | 202 | linear_extrude(height = inner_front_edge_width) |
paul@10 | 203 | polygon([ |
paul@10 | 204 | [-extra, 0], |
paul@10 | 205 | [0, 0], |
paul@10 | 206 | [inner_front_edge_height, inner_front_edge_depth], |
paul@10 | 207 | [-extra, inner_front_edge_depth], |
paul@10 | 208 | ]); |
paul@10 | 209 | |
paul@11 | 210 | /* Inner top cutout for the top of the back portion. */ |
paul@11 | 211 | |
paul@11 | 212 | translate([0, -inner_top_front_cutout_depth / 2, height / 2 - |
paul@11 | 213 | inner_top_front_cutout_offset - |
paul@11 | 214 | inner_top_front_cutout_depth / 2]) |
paul@11 | 215 | cube([inner_top_front_cutout_width, |
paul@11 | 216 | inner_top_front_cutout_depth, |
paul@11 | 217 | inner_top_front_cutout_depth], center = true); |
paul@11 | 218 | |
paul@10 | 219 | /* Fillets to round off the edges. */ |
paul@10 | 220 | |
paul@10 | 221 | union() { |
paul@10 | 222 | |
paul@10 | 223 | /* Top left and right rounding. */ |
paul@10 | 224 | |
paul@10 | 225 | translate([-width / 2 + ro, -front_depth / 2, height / 2 - ro]) |
paul@10 | 226 | rotate([0, 0, 180]) |
paul@10 | 227 | rotate([90, 0, 0]) |
paul@10 | 228 | fillet(rr, front_depth); |
paul@10 | 229 | translate([width / 2 - ro, -front_depth / 2, height / 2 - ro]) |
paul@10 | 230 | rotate([90, 0, 0]) |
paul@10 | 231 | fillet(rr, front_depth); |
paul@10 | 232 | |
paul@10 | 233 | /* Top front rounding. */ |
paul@10 | 234 | |
paul@10 | 235 | translate([0, -front_depth + ro, height / 2 - ro]) |
paul@10 | 236 | rotate([0, 0, 180]) |
paul@10 | 237 | rotate([0, -90, 0]) |
paul@10 | 238 | fillet(rr, width); |
paul@10 | 239 | |
paul@10 | 240 | /* Edge rounding. */ |
paul@10 | 241 | |
paul@10 | 242 | translate([-width / 2 + ro, -front_depth + ro, 0]) |
paul@10 | 243 | rotate([0, 0, 180]) |
paul@10 | 244 | fillet(rr, height); |
paul@10 | 245 | translate([width / 2 - ro, -front_depth + ro, 0]) |
paul@10 | 246 | rotate([0, 0, 270]) |
paul@10 | 247 | fillet(rr, height); |
paul@10 | 248 | } |
paul@10 | 249 | } |
paul@10 | 250 | |
paul@10 | 251 | difference() { |
paul@10 | 252 | |
paul@10 | 253 | /* The cartridge surfaces. */ |
paul@10 | 254 | |
paul@10 | 255 | union() { |
paul@8 | 256 | |
paul@8 | 257 | /* Back portion. */ |
paul@8 | 258 | |
paul@8 | 259 | translate([0, back_depth - back / 2, 0]) |
paul@0 | 260 | cube([width, back, height], center = true); |
paul@8 | 261 | translate([-width / 2 + back_left / 2, back_depth / 2, 0]) |
paul@8 | 262 | cube([back_left, back_depth, height], center = true); |
paul@8 | 263 | translate([width / 2 - back_right / 2, back_depth / 2, 0]) |
paul@8 | 264 | cube([back_right, back_depth, height], center = true); |
paul@8 | 265 | translate([0, back_depth / 2, height / 2 - top / 2]) |
paul@8 | 266 | cube([width, back_depth, top], center = true); |
paul@8 | 267 | difference() { |
paul@8 | 268 | translate([0, back_depth / 2, |
paul@8 | 269 | -height / 2 + bottom / 2 + bottom_from_base]) |
paul@8 | 270 | cube([width, back_depth, bottom], center = true); |
paul@8 | 271 | translate([0, edge_connector_cutout_back_depth / 2, |
paul@8 | 272 | -height / 2 + bottom / 2 + bottom_from_base]) |
paul@8 | 273 | cube([edge_connector_cutout_back_width, |
paul@8 | 274 | edge_connector_cutout_back_depth, |
paul@8 | 275 | bottom + extra], center = true); |
paul@8 | 276 | } |
paul@14 | 277 | |
paul@14 | 278 | /* PCB supports. */ |
paul@14 | 279 | |
paul@14 | 280 | translate([-edge_connector_cutout_back_width / 2 + |
paul@14 | 281 | pcb_back_support_width / 2, |
paul@14 | 282 | edge_connector_cutout_back_depth + |
paul@14 | 283 | pcb_back_support_depth / 2, |
paul@14 | 284 | -height / 2 + bottom + bottom_from_base + |
paul@14 | 285 | pcb_back_support_height / 2]) |
paul@16 | 286 | union() { |
paul@16 | 287 | cube([pcb_back_support_width, pcb_back_support_depth, |
paul@16 | 288 | pcb_back_support_height], center = true); |
paul@16 | 289 | translate([0, |
paul@16 | 290 | -pcb_back_support_depth / 2 - |
paul@16 | 291 | pcb_back_support_bump_depth / 2, |
paul@16 | 292 | -pcb_back_support_height / 2 + |
paul@18 | 293 | pcb_back_support_left_bump_height / 2 + |
paul@18 | 294 | pcb_back_support_left_bump_offset_from_bottom |
paul@18 | 295 | ]) |
paul@16 | 296 | cube([pcb_back_support_bump_width, |
paul@16 | 297 | pcb_back_support_bump_depth, |
paul@17 | 298 | pcb_back_support_left_bump_height], |
paul@17 | 299 | center = true); |
paul@16 | 300 | } |
paul@14 | 301 | |
paul@14 | 302 | translate([edge_connector_cutout_back_width / 2 - |
paul@14 | 303 | pcb_back_support_width / 2, |
paul@14 | 304 | edge_connector_cutout_back_depth + |
paul@14 | 305 | pcb_back_support_depth / 2, |
paul@14 | 306 | -height / 2 + bottom + bottom_from_base + |
paul@14 | 307 | pcb_back_support_height / 2]) |
paul@16 | 308 | union() { |
paul@16 | 309 | cube([pcb_back_support_width, pcb_back_support_depth, |
paul@16 | 310 | pcb_back_support_height], center = true); |
paul@16 | 311 | translate([0, |
paul@16 | 312 | -pcb_back_support_depth / 2 - |
paul@16 | 313 | pcb_back_support_bump_depth / 2, |
paul@16 | 314 | -pcb_back_support_height / 2 + |
paul@18 | 315 | pcb_back_support_right_bump_height / 2 + |
paul@17 | 316 | pcb_back_support_right_bump_offset_from_bottom |
paul@17 | 317 | ]) |
paul@16 | 318 | cube([pcb_back_support_bump_width, |
paul@16 | 319 | pcb_back_support_bump_depth, |
paul@17 | 320 | pcb_back_support_right_bump_height], |
paul@17 | 321 | center = true); |
paul@16 | 322 | } |
paul@0 | 323 | } |
paul@0 | 324 | |
paul@1 | 325 | /* Label insets. */ |
paul@1 | 326 | |
paul@1 | 327 | union() { |
paul@1 | 328 | |
paul@1 | 329 | /* Top label. */ |
paul@1 | 330 | |
paul@1 | 331 | translate([-top_label_width / 2, |
paul@8 | 332 | -front_depth + top_label_offset_from_front, |
paul@1 | 333 | height / 2 - top_label_depth]) |
paul@1 | 334 | cube([top_label_width, top_label_height, |
paul@1 | 335 | top_label_depth]); |
paul@1 | 336 | } |
paul@1 | 337 | |
paul@8 | 338 | /* Top and side grooves, positioned in the back portion. */ |
paul@2 | 339 | |
paul@2 | 340 | union() { |
paul@2 | 341 | |
paul@2 | 342 | /* Left groove. */ |
paul@2 | 343 | |
paul@8 | 344 | translate([-width / 2 + groove_depth / 2, groove_width / 2, 0]) |
paul@8 | 345 | cube([groove_depth, groove_width, height], |
paul@4 | 346 | center = true); |
paul@2 | 347 | |
paul@2 | 348 | /* Right groove. */ |
paul@2 | 349 | |
paul@8 | 350 | translate([width / 2 - groove_depth / 2, groove_width / 2, 0]) |
paul@8 | 351 | cube([groove_depth, groove_width, height], |
paul@4 | 352 | center = true); |
paul@2 | 353 | |
paul@8 | 354 | /* Top grooves. */ |
paul@2 | 355 | |
paul@8 | 356 | translate([0, groove_width / 2, height / 2 - groove_depth / 2]) |
paul@8 | 357 | cube([width, groove_width, groove_depth], |
paul@8 | 358 | center = true); |
paul@8 | 359 | |
paul@8 | 360 | translate([0, top_groove_width / 2, |
paul@8 | 361 | height / 2 - top_groove_depth / 2]) |
paul@8 | 362 | cube([width, top_groove_width, top_groove_depth], |
paul@4 | 363 | center = true); |
paul@4 | 364 | } |
paul@4 | 365 | |
paul@4 | 366 | /* Back cavity. */ |
paul@4 | 367 | |
paul@4 | 368 | intersection() { |
paul@4 | 369 | |
paul@4 | 370 | /* From the bottom upwards. */ |
paul@4 | 371 | |
paul@8 | 372 | translate([0, back_depth, -height / 2]) |
paul@4 | 373 | linear_extrude(height = back_cavity_height) |
paul@4 | 374 | translate([-width / 2, 0, 0]) |
paul@4 | 375 | polygon([ |
paul@4 | 376 | [back_cavity_offset_from_left, 0], |
paul@4 | 377 | [back_cavity_inner_offset_from_left, |
paul@4 | 378 | -back_cavity_depth], |
paul@4 | 379 | [back_cavity_inner_offset_from_left + |
paul@4 | 380 | back_cavity_inner_width, |
paul@4 | 381 | -back_cavity_depth], |
paul@4 | 382 | [back_cavity_offset_from_left + |
paul@4 | 383 | back_cavity_width, 0] |
paul@4 | 384 | ]); |
paul@4 | 385 | |
paul@4 | 386 | /* From left to right. */ |
paul@4 | 387 | |
paul@8 | 388 | translate([back_cavity_width / 2, back_depth, -height / 2]) |
paul@4 | 389 | rotate([0, -90, 0]) |
paul@4 | 390 | linear_extrude(height = back_cavity_width) |
paul@4 | 391 | polygon([ |
paul@4 | 392 | [-extra, -back_cavity_depth], |
paul@4 | 393 | [back_cavity_inner_height, |
paul@4 | 394 | -back_cavity_depth], |
paul@4 | 395 | [back_cavity_height, 0], |
paul@4 | 396 | [-extra, 0] |
paul@4 | 397 | ]); |
paul@2 | 398 | } |
paul@2 | 399 | |
paul@5 | 400 | /* Inner back cavities. */ |
paul@5 | 401 | |
paul@8 | 402 | translate([0, back_depth - inner_back_cavity_offset, -height / 2]) |
paul@5 | 403 | linear_extrude(height = bottom_from_base) |
paul@5 | 404 | translate([-width / 2, 0, 0]) |
paul@5 | 405 | polygon([ |
paul@5 | 406 | [inner_back_cavity_offset_from_left, 0], |
paul@5 | 407 | [inner_back_slope_offset_from_left, 0], |
paul@5 | 408 | [inner_back_slope_offset_from_left + |
paul@5 | 409 | inner_back_slope_width, |
paul@5 | 410 | -inner_back_slope_depth], |
paul@5 | 411 | [inner_back_cavity_offset_from_left, |
paul@5 | 412 | -inner_back_slope_depth] |
paul@5 | 413 | ]); |
paul@5 | 414 | |
paul@8 | 415 | translate([0, back_depth - inner_back_cavity_offset, -height / 2]) |
paul@5 | 416 | linear_extrude(height = bottom_from_base) |
paul@5 | 417 | translate([-width / 2, 0, 0]) |
paul@5 | 418 | polygon([ |
paul@5 | 419 | [width - inner_back_slope_offset_from_left, 0], |
paul@5 | 420 | [width - inner_back_cavity_offset_from_left, 0], |
paul@5 | 421 | [width - inner_back_cavity_offset_from_left, |
paul@5 | 422 | -inner_back_slope_depth], |
paul@5 | 423 | [width - inner_back_slope_offset_from_left - |
paul@5 | 424 | inner_back_slope_width, |
paul@5 | 425 | -inner_back_slope_depth] |
paul@5 | 426 | ]); |
paul@5 | 427 | |
paul@7 | 428 | /* Inner back edge cavity. */ |
paul@7 | 429 | |
paul@5 | 430 | translate([inner_back_edge_width / 2, |
paul@8 | 431 | back_depth - inner_back_edge_offset, -height / 2]) |
paul@5 | 432 | rotate([0, -90, 0]) |
paul@5 | 433 | linear_extrude(height = inner_back_edge_width) |
paul@5 | 434 | polygon([ |
paul@5 | 435 | [-extra, -inner_back_edge_depth], |
paul@5 | 436 | [inner_back_edge_height, -inner_back_edge_depth], |
paul@5 | 437 | [0, 0], |
paul@5 | 438 | [-extra, 0] |
paul@5 | 439 | ]); |
paul@5 | 440 | |
paul@1 | 441 | /* Fillets to round off the edges. */ |
paul@1 | 442 | |
paul@0 | 443 | union() { |
paul@0 | 444 | |
paul@0 | 445 | /* Top left and right rounding. */ |
paul@0 | 446 | |
paul@9 | 447 | translate([-width / 2 + ro, back_depth / 2, height / 2 - ro]) |
paul@9 | 448 | rotate([0, 0, 180]) |
paul@9 | 449 | rotate([90, 0, 0]) |
paul@9 | 450 | fillet(rr, back_depth); |
paul@9 | 451 | translate([width / 2 - ro, back_depth / 2, height / 2 - ro]) |
paul@9 | 452 | rotate([90, 0, 0]) |
paul@9 | 453 | fillet(rr, back_depth); |
paul@0 | 454 | |
paul@10 | 455 | /* Top back rounding. */ |
paul@0 | 456 | |
paul@8 | 457 | translate([0, back_depth - ro, height / 2 - ro]) |
paul@0 | 458 | rotate([0, -90, 0]) |
paul@3 | 459 | fillet(rr, width); |
paul@0 | 460 | |
paul@0 | 461 | /* Edge rounding. */ |
paul@0 | 462 | |
paul@8 | 463 | translate([width / 2 - ro, back_depth - ro, 0]) |
paul@3 | 464 | fillet(rr, height); |
paul@8 | 465 | translate([-width / 2 + ro, back_depth - ro, 0]) |
paul@0 | 466 | rotate([0, 0, 90]) |
paul@3 | 467 | fillet(rr, height); |
paul@0 | 468 | } |
paul@0 | 469 | } |
paul@0 | 470 | } |
paul@0 | 471 | |
paul@0 | 472 | cartridge(); |
paul@0 | 473 | |