-
Notifications
You must be signed in to change notification settings - Fork 17
Visualization
Ioanna Mitropoulou edited this page Oct 12, 2020
·
9 revisions
There are two options in order to visualize the results of the slicing process.
- The first quick-and-easy visualization uses compas viewers (make sure you have installed it as explained in the README.md).
The classes that can be visualized are the
BaseSlicer
and all classes inheriting from it (so all the slicers), as well as thePrintOrganiser
and all the classes inheriting from it (so all the print organizers). See examples for how to use it, but basically you need to do the following:
from compas_viewers.objectviewer import ObjectViewer
viewer = ObjectViewer()
viewer.view.use_shaders = False
# create and use your slicer
slicer.visualize_on_viewer(viewer)
# create and use your print_organiser
print_organiser.visualize_on_viewer(viewer)
# at the end of your script
viewer.update()
viewer.show()