मुख्य सामग्री पर जाएँ

raygeo.ops.transform.optimize

OptimizeSpec​

Parameters for the Optimize (travel optimization) transformer.

allow_flip​

allow_flip: bool

Whether flipping subpaths is allowed.

best_start_point​

best_start_point: bool

When set, closed paths are rotated so they are entered at the vertex nearest the current head position.

merge_scanlines​

merge_scanlines: Optional[merge_scanlines.MergeScanlinesSpec]

When set, acceleration-aware scanline merging runs before the travel optimization.

prefer_corners​

prefer_corners: bool

With best_start_point, restrict the candidate start vertices of a closed path to its corners.

preserve_first​

preserve_first: bool

Keep the first workpiece in place.

preserve_order​

preserve_order: list[str]

Workpiece UIDs whose order to preserve.

reorder_scanlines​

reorder_scanlines: bool

When true, raster scan-line runs participate in the travel-optimizing reorder like ordinary cut segments. Defaults to false: raster rows keep their emission order, because reordering them makes the machine reverse and hop its Y axis between rows, and the backlash of every reversal displaces the rows enough to show up as banding on the material.