pyrobopath.toolpath.preprocessing.ScalingStep#

class pyrobopath.toolpath.preprocessing.ScalingStep(scale: float)[source]#

Bases: PreprocessingStep

A preprocessing step that uniformly scales all path points.

Parameters:

scale (float) – The uniform scale factor to apply to each point.

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