mirror of
https://github.com/Theaninova/Brick-Monorail.git
synced 2026-01-19 08:22:52 +00:00
migrate to cadquery
This commit is contained in:
39
src/params.py
Normal file
39
src/params.py
Normal file
@@ -0,0 +1,39 @@
|
||||
from dataclasses import dataclass
|
||||
import units as u
|
||||
|
||||
|
||||
@dataclass
|
||||
class Params:
|
||||
radius: float
|
||||
to: tuple
|
||||
shell: bool
|
||||
hollow_studs: bool
|
||||
|
||||
width: float = u.studs(4)
|
||||
height = u.studs(1)
|
||||
|
||||
start_joint = True
|
||||
end_joint = True
|
||||
joint_studs = 2
|
||||
|
||||
nail_slot = True
|
||||
nail_slot_size = (u.studs(1), u.ldu(1), u.ldu(1))
|
||||
|
||||
connector = True
|
||||
connector_position = u.ldu(4)
|
||||
connector_width = u.ldu(8)
|
||||
connector_depth = u.ldu(1)
|
||||
|
||||
shell_mid_thickness = u.stud(1)
|
||||
shell_mid_cut_thickness = u.ldu(4)
|
||||
shell_support = True
|
||||
|
||||
standoff_height = u.brick(1)
|
||||
standoff_padding = u.ldu(6)
|
||||
standoff_studs = (1, 2)
|
||||
|
||||
teeth_height = u.ldu(7)
|
||||
teeth_width = u.ldu(2)
|
||||
teeth_spacing = u.ldu(1)
|
||||
teeth_inner_width = u.ldu(10)
|
||||
teeth_outer_width = u.ldu(14)
|
||||
Reference in New Issue
Block a user