pyrobopath.toolpath.preprocessing.LayerRangeStep#

class pyrobopath.toolpath.preprocessing.LayerRangeStep(start: int, stop: int, step: int = 1)[source]#

Bases: PreprocessingStep

Selects a range of layers from a toolpath based on Z-height slicing.

Parameters:
  • start (int) – The starting layer index (inclusive) to include in the result.

  • stop (int) – The stopping layer index (exclusive).

  • step (int, optional) – The step size for slicing. Defaults to 1.

Methods

apply

Apply the preprocessing step to the given toolpath.

apply(toolpath: Toolpath) Toolpath[source]#

Apply the preprocessing step to the given toolpath.

Parameters:

toolpath (Toolpath) – The toolpath to process.

Returns:

The processed toolpath.

Return type:

Toolpath