generate_raft

compas_slicer.post_processing.generate_raft(slicer, raft_offset=10, distance_between_paths=10, direction='xy_diagonal', raft_layers=1, raft_layer_height=None)[source]

Creates a raft.

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

  • raft_offset (float) – Distance (in mm) that the raft should be offsetted from the first layer. Defaults to 10mm

  • distance_between_paths (float) – Distance (in mm) between the printed lines of the raft. Defaults to 10mm

  • direction (str) – x_axis: Create a raft aligned with the x_axis y_axis: Create a raft aligned with the y_axis xy_diagonal: Create a raft int the diagonal direction in the xy_plane

  • raft_layers (int) – Number of raft layers to add. Defaults to 1

  • raft_layer_height (float) – Layer height of the raft layers. Defaults to same value as used in the slicer.