set_linear_velocity

compas_slicer.print_organization.set_linear_velocity(print_organizer, velocity_type, v=25.0, per_layer_velocities=None, angle_range=(None, None), speed_range=(None, None))[source]

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

Parameters
  • print_organizer (compas_slicer.print_organization.BasePrintOrganizer)

  • velocity_type (str) – Determines how to add linear velocity to the printpoints.

    ‘constant’: one value used for all printpoints ‘per_layer’: different values used for every layer ‘by_layer_height’: set velocity in accordance to layer height (beta, to be improved) ‘by_overhang’: set velocity in accordance to the overhang (beta, to be improved)

  • v (float) – Velocity value (in mm/s) to set for printpoints. Defaults to 25 mm/s.

  • per_layer_velocities (list of floats) – If setting velocity per layer, provide a list of floats with equal length to the number of layers.

  • angle_range (tuple) – Two angles (in degrees) that give the minimum and maximum value to map the speed_range to. For example, (10, 50) will assign the maximum speed to overhang angles of 10 degrees or less, and the minimum speed to points with an overhang angle of 50 degrees and above.

  • speed_range (tuple) – xxx