Skip to content

Commit

Permalink
placeholder for generate_renders()
Browse files Browse the repository at this point in the history
  • Loading branch information
julianstirling committed Nov 4, 2024
1 parent e91860c commit 60ecc5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mechanical/assembly_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ def generate(self) -> cq.Assembly:
assembly = cq.Assembly()
for part in self._parts:
if part.device:
# This is a shelf and we load it directly rather than from an STL.
shelf_obj = create_shelf_for(part.device)
cq_part = shelf_obj.generate_assembly_model()
# generate all render pngs for this shelf
# commented out as this doesnt work yet
# self_obj.generate_renders()
else:
cq_part = cq.importers.importStep(part.step_file)
for tag in part.tags:
Expand Down

0 comments on commit 60ecc5b

Please sign in to comment.