Expand description
ONE entry point over every strategy: the generator the application’s worker calls per operation, without knowing which lane wrote the strategy or what inputs it takes.
Each lane’s generate has its own signature — the drop-cutter finishes
take a cutter, heights and feeds; the waterline family takes the setup,
the tool and its limits; the 2.5D family a PlanarInput of regions;
drilling the recognised holes — so this module builds those inputs from
the operation, the setup, the document’s tools and the mesh snapshot, and
dispatches exhaustively on the strategy. Advanced model inputs arrive in
GenerateContext; missing geometry is a named refusal, never a guessed path.
Pattern expansion preserves program sections through generate_expanded.
Hole recognition needs the kernel (the adapter’s revolved faces), which lives on the worker side; the caller recognises holes there and passes them in, so this module stays kernel-free.
Modules§
- chains
- Identity-based chain extraction. Geometry is supplied by the worker; mesh silhouettes cannot recover persistent edges or sketch geometry.
Structs§
- Generate
Context - Additional model data that cannot be reconstructed safely from triangles. The worker resolves these by identity; no arbitrary previous path is chosen.
- Generate
Input - What one operation’s generation reads.
- Turning
Input - Geometry supplement supplied by the model adapter/feature selection. A supplied profile must include all protected axisymmetric material. Otherwise the public extractor builds it from adapter-certified carriers and the mesh.
Enums§
- Mill
Turn Input - Live-tool selection is distinct from Strategy: the shared model has no polar/cylindrical strategy variants. Inputs are explicit compensated CL contours and separated rotating/fixed meshes, as required by C11’s API.
Functions§
- feeds_
of - The feeds an operation cuts at: its own override, else the tool’s.
- generate
- Generate one operation’s toolpath.
- generate_
expanded - Pattern output retains separate operations/tools/WCS sections. The single Toolpath API refuses this loss of information; workers use this entry point for program expansion and pass its setups to program::assemble.
- generate_
with_ context - Generate with resolved model inputs. Existing single-operation arms are unchanged.
- heights_
of - The heights an operation cuts at: its own override, else the setup’s.
- planar_
input - The 2.5D input for an operation: one planar region per drive face (its projected outline, at the face’s top) and, for an operation with no drive faces, the targets’ silhouette (the projected union of every triangle, at the body’s top); the stock top at the mesh’s top. Nothing to outline is the model’s empty-target error.
- tool_of
- The operation’s tool, from the document’s tools.