Tweak hole location calcs
parent
7177305369
commit
1b80a67868
|
@ -14,7 +14,7 @@ class WetRocksConfig(BaseModel):
|
|||
tslot_size: float = tslot_width
|
||||
tslot_color: tuple = (0.7, 0.7, 0.7, 1.0)
|
||||
tslot_alpha: float = 0.9
|
||||
tslot_length: float = 500 # Example tslot length. Tslots get resized elsewhere.
|
||||
tslot_length: float = 500 # Example tslot length. Tslots get resized elsewhere.
|
||||
|
||||
# Tank
|
||||
tank_length: float = 260
|
||||
|
@ -42,8 +42,9 @@ class WetRocksConfig(BaseModel):
|
|||
mb_offset_y: float = 100
|
||||
# Holes to mount motherboard, radius. 5% larger than ATX spec.
|
||||
mb_hole: float = (3.9624 / 2) * 1.05
|
||||
mb_fudge_x: float = -0.50 # Fudge over plate half mm to line up motherboard
|
||||
mb_fudge_y: float = 0.10 # Fudge plate by a micron...
|
||||
# Fudge over plate half mm to line up motherboard XXX Why?
|
||||
mb_fudge_x: float = -0.50
|
||||
mb_fudge_y: float = 0.0
|
||||
# Acrylic 5.6mm, lighter than thicker tank
|
||||
mb_plate_color: tuple = (
|
||||
0.25,
|
||||
|
@ -87,5 +88,6 @@ class WetRocksConfig(BaseModel):
|
|||
mb_riser: float = 6.5 # Size of motherboard risers/standoffs
|
||||
mb_width: float = 304.8
|
||||
mb_length: float = 243.84
|
||||
mb_x_wtf: float = 16 # XXX Fix
|
||||
mb_z_wtf: float = 99 # XXX Fix
|
||||
# Moves motherboard relative to mb plate
|
||||
mb_x_wtf: float = 16 # # XXX why 16 mm off?
|
||||
mb_z_wtf: float = -1.0 # XXX Why 1mm off?
|
||||
|
|
|
@ -162,14 +162,17 @@ def compound_assembly(
|
|||
compound_mb = Compound.make_compound([(mb)]).locate(
|
||||
Location(
|
||||
Vector(
|
||||
tank_offset_x + tslot_size + mb_x_wtf + tank_thick,
|
||||
tank_offset_x
|
||||
+ tslot_size
|
||||
+ mb_x_wtf
|
||||
+ tank_thick, # XXX why 16 mm off?
|
||||
tank_offset_y
|
||||
+ tank_length
|
||||
- tank_thick
|
||||
- tank_weir_offset
|
||||
- mb_plate_thick
|
||||
- mb_riser,
|
||||
mb_length + mb_z_wtf,
|
||||
mb_length + mb_offset_y + mb_z_wtf, # XXX why 1 mm off?
|
||||
),
|
||||
(0, 180, 180),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue