set_linear_velocity_by_overhang

compas_slicer.print_organization.set_linear_velocity_by_overhang(print_organizer, overhang_range, velocity_range, bound_remapping=True)[source]

Set velocity by overhang by using set_linear_velocity_by_range.

An example function for how to use the ‘set_linear_velocity_by_range’. In this case the parameter that controls the velocity is the overhang, measured as a dot product with the horizontal direction.

Parameters:
  • print_organizer (compas_slicer.print_organization.BasePrintOrganizer)

  • overhang_range (tuple:) – should be within [0.0, 1.0]. For example a reasonable value would be [0.0, 0.5], that would be remapping overhangs up to 45 degrees

  • velocity_range (tuple)

  • bound_remapping (bool)