mirror of
https://github.com/Theaninova/Brick-Monorail.git
synced 2026-07-27 07:14:41 +00:00
22 lines
674 B
Python
22 lines
674 B
Python
from presets import presets
|
|
from parts.rail import rail, rail_support
|
|
from parts.straight_joint import straight_joint_standoff_insert
|
|
from parts.switch import switch
|
|
from parts.teeth import compliant_teeth
|
|
import units as u
|
|
import cadquery as cq
|
|
|
|
target = "solid_support/C7"
|
|
|
|
params = [params for name, params in presets if name == target][0]
|
|
|
|
# standoff_joint = straight_joint_standoff_insert(params, cq.Plane(cq.Vector(0, 0, 0)))
|
|
# show_object(standoff_joint)
|
|
# show_object(switch(params))
|
|
# teeth = compliant_teeth(params, u.studs(10))
|
|
# cq.exporters.export(teeth, f"STEPs/compliant_teeth.step")
|
|
# show_object(teeth)
|
|
|
|
|
|
show_object(rail(params).add(rail_support(params)))
|