diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-11-09 00:56:31 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-11-09 00:56:31 +0100 |
| commit | 188b65034fa91ed692ef698602f005bece581272 (patch) | |
| tree | abbe81d033b1b085d8b0e15d3785ae06dba91233 /model | |
| parent | c0f8b7f02f08653953fd200d0676cdbad2b01ebc (diff) | |
| download | desk-andon-188b65034fa91ed692ef698602f005bece581272.tar.gz desk-andon-188b65034fa91ed692ef698602f005bece581272.zip | |
Add test mode
Diffstat (limited to 'model')
| -rw-r--r-- | model/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/model/main.py b/model/main.py index 54ea13d..8942110 100644 --- a/model/main.py +++ b/model/main.py @@ -263,6 +263,9 @@ def build_lid(base, rod, rod_shaft, wall, bolt, bolt_depth, tol, hole_spacing, else: part = part.cut(part_bolt.bounds.translate(bolt_pos)) part = part.cut(cylinder(bolt.radius + tol, bolt_depth + bolt.head_height).translate(bolt_pos)) + for r in range(0, 360, 90): + part = part.cut(box(outer.x, 8, 2).rotate(origin, (1, 0, 0), -45) + .translate((0, outer.x / 2, outer.z - 2)).rotate(origin, (0, 0, 1), r)) oled_pos = (oled_offset + V3(0, -outer_padded.y / 2, outer_padded.z - oled.outer.z)).xyz() part_oled = build_oled(**oled.__dict__) @@ -346,12 +349,12 @@ def main(): wall=thin_wall, bolt=bolt, bolt_depth=bolt_depth, tol=tol, hole_spacing=lid_hole_spacing, oled=oled, oled_offset=V3(0, 20, 0), antenna=antenna, antenna_offset=V3(-30, 20, 0), rod_support=rod_support) - #show_object(build_lid(**lid_ctx.__dict__).translate((0, 0, 50))) + show_object(build_lid(**lid_ctx.__dict__).translate((0, 0, 50))) base_ctx = V(base=base, rod=rod, rod_shaft=rod_shaft, bolt=bolt, wall=base_wall, tol=tol, usbc_board=usbc_board, board_space=board_space) - show_object(build_base(**base_ctx.__dict__, lid=lid_ctx)) + #show_object(build_base(**base_ctx.__dict__, lid=lid_ctx)) #show_object(build_oled(**oled.__dict__).bounds) |
