pyrobopath.toolpath.preprocessing.SubstituteToolStep#

class pyrobopath.toolpath.preprocessing.SubstituteToolStep(tool_map: Dict)[source]#

Bases: PreprocessingStep

A preprocessing step that replaces tool types in contours using a mapping.

Parameters:

tool_map (dict) – A dictionary mapping existing tool names to new tool names.

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