set_linear_velocity_by_range

compas_slicer.print_organization.set_linear_velocity_by_range(print_organizer, param_func, parameter_range, velocity_range, bound_remapping=True)[source]

Sets the linear velocity parameter of the printpoints depending on the selected type.

Parameters:
  • print_organizer (compas_slicer.print_organization.BasePrintOrganizer)

  • param_func (function that takes as argument a :class: ‘compas_slicer.geometry.Printpoint’: get_param_func(pp)) – and returns the parameter value that will be used for the remapping

  • parameter_range (tuple) – An example of a parameter that can be used is the overhang angle, or the layer height.

  • velocity_range (tuple) – The range of velocities where the parameter will be remapped

  • bound_remapping (bool) – If True, the remapping is bound in the domain velocity_range, else it is unbound.