|
519 | 519 | (translate [0 (/ mount-height 2) wall-offset])
|
520 | 520 | ))))
|
521 | 521 |
|
| 522 | +(def rj9-vertical-offset (- (last (key-position 0 0 [0 (/ mount-height 2) 0])) 40)) |
522 | 523 | (def rj9-cube (cube 14.78 13 22.38))
|
523 |
| -(def rj9-space (on-wall-place 1 20 rj9-cube)) |
524 |
| -(def rj9-holder (on-wall-place 1 20 |
| 524 | +(def rj9-space (on-wall-place 1 rj9-vertical-offset rj9-cube)) |
| 525 | +(def rj9-holder (on-wall-place 1 rj9-vertical-offset |
525 | 526 | (difference rj9-cube
|
526 | 527 | (union (translate [0 2 0] (cube 10.78 9 18.38))
|
527 | 528 | (translate [0 0 5] (cube 10.78 13 5))))))
|
528 | 529 |
|
529 |
| -(def teensy-width 20) ; was 20 |
| 530 | +(def teensy-width 20) |
530 | 531 | (def teensy-height 12)
|
531 | 532 | (def teensy-length 33)
|
532 | 533 | (def teensy2-length 53)
|
533 | 534 | (def teensy-pcb-thickness 1.6)
|
534 | 535 | (def teensy-offset-height 5)
|
| 536 | +(def teensy-vertical-offset ) |
535 | 537 |
|
536 | 538 | (def teensy-holder
|
537 |
| - (on-wall-place 0 20 |
| 539 | + (on-wall-place 0 rj9-vertical-offset |
538 | 540 | (translate [-5 0 0]
|
539 | 541 | (union
|
540 | 542 | (->> (cube 3 (* 1.2 teensy2-length) (+ 6 teensy-width))
|
|
560 | 562 | (mirror [-1 0 0] side-cylinder))
|
561 | 563 | (rotate (/ π 2) [1 0 0])
|
562 | 564 | (rotate (/ π 2) [0 1 0])
|
563 |
| - (on-wall-place 0 20)))) |
| 565 | + (on-wall-place 0 rj9-vertical-offset)))) |
564 | 566 |
|
565 | 567 |
|
566 | 568 | (defn hex-spacer [column row radius height]
|
|
589 | 591 | (union (hex-spacer 0 0 radius height)
|
590 | 592 | (hex-spacer 0 cornerrow radius height)
|
591 | 593 | (hex-spacer 3 lastrow radius height)
|
592 |
| - (hex-spacer 2 0 radius height) |
| 594 | + (hex-spacer 3 0 radius height) |
593 | 595 | (hex-spacer lastcol (dec cornerrow) radius height)
|
594 | 596 | ))
|
595 | 597 | (def hex-spacer-height 10)
|
|
609 | 611 | connectors
|
610 | 612 | thumb
|
611 | 613 | thumb-connectors
|
612 |
| - (difference case-walls rj9-space usb-cutout hex-spacer-holes) |
| 614 | + (difference case-walls |
| 615 | + rj9-space |
| 616 | + usb-cutout |
| 617 | + hex-spacer-holes) |
613 | 618 | rj9-holder
|
614 | 619 | (if (= nrows 4) teensy-holder)
|
615 | 620 | hex-spacer-outers
|
|
0 commit comments