Перейти до основного вмісту

raygeo.ops.assembly.slot

Functions

generate_slot()

generate_slot(
carrier: Sequence[tuple[float, float]],
tool_radius: float,
target_z: float,
state: ops.state.State | None = None,
) -> ops.assembly.result.AssemblyResult

Generate a back-and-forth slot clearing path along a carrier.

Produces a forward pass then a backward pass along the carrier, both at constant target_z. The cleared polygon is the carrier swept by tool_radius (Minkowski sum).

ParameterTypeDescription
carrierSequence[tuple[float, float]](x, y) waypoints (currently 2-point segment).
tool_radiusfloatTool radius in mm.
target_zfloatCutting Z height.
stateops.state.State | None = NoneOptional machine state to apply before the path.
Returnsops.assembly.result.AssemblyResultAn AssemblyResult with the slot path.

3D forward+backward slot path through a rectangular slot at constant depth, no trochoid.

3D forward+backward slot path through a rectangular slot at constant depth, no trochoid.