pyrobopath.toolpath.preprocessing.MaxContourLengthStep#

class pyrobopath.toolpath.preprocessing.MaxContourLengthStep(length: float)[source]#

Bases: PreprocessingStep

A preprocessing step that splits contours into smaller segments if their total length exceeds a specified maximum.

Parameters:

length (float) – The maximum allowed length for any single contour.

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