pyrobopath.toolpath.preprocessing.TranslateStep#

class pyrobopath.toolpath.preprocessing.TranslateStep(trans: List[float] | Tuple[float, float, float] | ndarray[Tuple[Literal[3]], dtype[floating]])[source]#

Bases: PreprocessingStep

A preprocessing step that translates all path points.

Parameters:

trans (ArrayLike3) – The translation vector to add 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