sort_into_vertical_layers

compas_slicer.post_processing.sort_into_vertical_layers(slicer, dist_threshold=25.0, max_paths_per_layer=None)[source]

Sorts the paths from horizontal layers into Vertical Layers.

Vertical Layers are layers at different heights that are grouped together by proximity of their center points. Can be useful for reducing travel time in a robotic printing process.

Parameters:
  • slicer (compas_slicer.slicers.BaseSlicer) – An instance of one of the compas_slicer.slicers classes.

  • dist_threshold (float) – The maximum get_distance that the centroids of two successive paths can have to belong in the same VerticalLayer Recommended value, slightly bigger than the layer height

  • max_paths_per_layer (int) – Maximum number of layers that a vertical layer can consist of. If None, then the vertical layer has an unlimited number of layers.