Skip to content

Visualization

Ioanna Mitropoulou edited this page Oct 12, 2020 · 9 revisions

Visualization

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 the PrintOrganiser 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()

Clone this wiki locally