mirror of
https://github.com/johndoe6345789/bamboogenerator.git
synced 2026-04-24 13:24:54 +00:00
15 lines
527 B
Python
15 lines
527 B
Python
from parametric_cad.primitives.box import Box
|
|
from parametric_cad.mechanisms.butthinge import ButtHinge
|
|
from parametric_cad.export.stl import STLExporter
|
|
from parametric_cad.logging_config import setup_logging
|
|
|
|
setup_logging()
|
|
|
|
box = Box(100, 60, 40).at(0, 0, 0)
|
|
door = Box(100, 3, 40).at(0, 63, 0)
|
|
hinge = ButtHinge(leaf_length=40, pin_diameter=3).at(50, 61.5, 20)
|
|
|
|
exporter = STLExporter(output_dir="output/box_with_door_output")
|
|
exporter.export_meshes([box,], "box")
|
|
exporter.export_meshes([door, hinge], "door_with_hinge")
|