Pular para o conteúdo principal

raygeo.ops.cut.search

ToolPose

heading

heading: float

pos

pos: tuple[float, float]

Functions

search_frontier_engagement()

search_frontier_engagement(
cleared: cleared_area.ClearedArea,
start: ToolPose,
radius: float,
step_length: float,
advance: float,
min_cut_area: float,
max_cut_area: float,
) -> Optional[ToolPose]

Walk the frontier forward from start_pos, skipping the closest vertex. Returns the first vertex whose outward cut-area probe falls in [min, max].

The returned position is offset inward (into the cleared area) by radius - advance so the tool starts at the correct engagement depth.

ParameterTypeDescription
clearedcleared_area.ClearedAreaClearedArea instance.
startToolPoseToolPose seed.
radiusfloatDisk radius (mm).
step_lengthfloatForward step distance (mm) for the probe.
advancefloatStepover distance (mm) for inward offset.
min_cut_areafloatMinimum cut area (mm²).
max_cut_areafloatMaximum cut area (mm²), e.g. float("inf").
ReturnsOptional[ToolPose]ToolPose or None.

Walk forward from the engagement point to find the next frontier match.

Walk forward from the engagement point to find the next frontier match.

Multi-island pocket — end positions (triangles) yield resume positions (stars) with outward headings.

Multi-island pocket — end positions (triangles) yield resume positions (stars) with outward headings.

search_reengagement()

search_reengagement(
cleared: cleared_area.ClearedArea,
start: ToolPose,
radius: float,
step_length: float,
advance: float,
min_cut_area: float,
) -> Optional[ToolPose]

Walk the frontier backward from start_pos, skipping the closest vertex. Returns the first vertex (going backward) whose outward cut-area probe is at least min_cut_area.

The returned position is offset inward by radius - advance.

ParameterTypeDescription
clearedcleared_area.ClearedAreaClearedArea instance.
startToolPoseToolPose seed.
radiusfloatDisk radius (mm).
step_lengthfloatForward step distance (mm).
advancefloatStepover distance (mm) for inward offset.
min_cut_areafloatMinimum cut area (mm²).
ReturnsOptional[ToolPose]ToolPose or None.

Full backward wall-hugging search (both phases).

Full backward wall-hugging search (both phases).