Skip to content

Commit

Permalink
Per-part export
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Jan 8, 2024
1 parent 873807c commit 27bea95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@
print("Cannot show model, exporting to STL instead (%s)" % ex)

if export:
core.export_stl('core.stl')
for i, solid in enumerate(core.solids()):
solid.export_stl('core-%d.stl' % i)
2 changes: 2 additions & 0 deletions src/screwable_cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ def __post_init__(self):
import ocp_vscode
part = ScrewableCylinder(rotation=(0, 0, 90))
ocp_vscode.show_all(render_joints=True)
if False:
part.export_stl('screwable-cylinder.stl')

0 comments on commit 27bea95

Please sign in to comment.