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

raygeo.ops.assembly.helix

Functions

generate_helix()

generate_helix(
center: tuple[float, float],
start_radius: float,
z_start: float,
z_end: float,
pitch: float,
direction: str = 'CW',
angular_step: float = 0.1,
state: ops.state.State | None = None,
) -> ops.assembly.result.AssemblyResult

Generate a helical entry path.

Produces a helical toolpath from z_start to z_end at the given center and start_radius.

ParameterTypeDescription
centertuple[float, float](x, y) center of the helix.
start_radiusfloatRadius of the helix in mm.
z_startfloatStarting Z height.
z_endfloatEnding (target) Z depth.
pitchfloatVertical descent per full revolution.
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 helical path.

Helical entry path from safe Z to target depth

Helical entry path from safe Z to target depth