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

raygeo.ops.assembly.toroid

Functions

generate_toroid()

generate_toroid(
carrier: Sequence[tuple[float, float]],
tool_radius: float,
step_distance: float,
z: float,
direction: str = 'CW',
angular_step: float = 0.1,
state: ops.state.State | None = None,
) -> ops.assembly.result.AssemblyResult

Generate a toroidal (trochoidal) path along a carrier.

Produces a trochoidal looping path that follows the carrier polyline, clearing a slot of width tool_radius.

ParameterTypeDescription
carrierSequence[tuple[float, float]]List of (x, y) waypoints defining the slot axis.
tool_radiusfloatTool radius in mm.
step_distancefloatForward advance per trochoid loop.
zfloatCutting Z height.
directionstr = 'CW'"CW" or "CCW" (default "CW").
angular_stepfloat = 0.1Angular step in radians (default 0.1).
stateops.state.State | None = NoneOptional machine state to apply before the path.
Returnsops.assembly.result.AssemblyResultAn AssemblyResult with the toroidal path.

Trochoidal slot path along a carrier polyline

Trochoidal slot path along a carrier polyline