Ir al contenido principal

raygeo.cnc.machining.plan

Workplan

Plan-time context and executor for a sequence of WorkplanSteps.

Captures the pocket boundary, islands, and safe-Z at construction time. After extending with steps from a builder (e.g. raygeo.cnc.machining.wavefront.build_wavefront_workplan or raygeo.cnc.machining.entry.build_entry_workplan), call execute to produce a combined AssemblyResult.

execute()

execute(
cut_feed_rate: int = 1200,
cut_power: float = 1.0,
rapid_feed_rate: Optional[int] = None,
trace: Optional[str] = None,
on_progress: Optional[Any] = None,
batch_size: int = 128,
) -> result.AssemblyResult

Execute all steps and return the combined AssemblyResult.

ParameterTypeDescription
cut_feed_rateint = 1200Feed rate for cutting moves (default 1200).
cut_powerfloat = 1.0Laser power for cutting moves (default 1.0).
rapid_feed_rateOptional[int] = NoneFeed rate for travel/retract moves, or None to leave them unmodified (default None).
traceOptional[str] = NoneOptional file path for a trace file (.bin).
on_progressOptional[Any] = NoneOptional callback receiving progress dicts.
batch_sizeint = 128Ops batch size for on_progress (default 128).
Returnsresult.AssemblyResultThe combined AssemblyResult.

extend()

extend(steps: Any) -> None

Append builder output steps (list of WorkplanStep dicts).

ParameterTypeDescription
stepsAny
ReturnsNone