Skip to content

ClearNC v0.15.0 — Cutting-Load Safety, Tool Crib & Pluggable STEP Import (#23)

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:06

ClearNC v0.15.0 — Cutting-Load & Milling Clearance Safety + Local Tool Crib, Pluggable STEP WASM Import & Live STEP Match % (#23)

Highlights

1. Pluggable External STEP-to-ClearNC WASM Infrastructure & Live STEP Match % (Resolves #23)

  • Zero-Bloat Pluggable STEP Provider Architecture: Drop or select .step / .stp 3D CAD files in ClearNC Studio to invoke a lazy-loaded, zero-import external WebAssembly STEP provider inside an isolated Web Worker (alloc, free, result_ptr, result_len, step_to_nc_eval). Supports HTTPS provider URLs (pre-wired to https://cdn.primeform.in/step-provider/v0.2.0/clearnc-step-provider.wasm), local .wasm drop-in with optional IndexedDB caching, embedder API (<clearnc-studio step-provider-url> / studio.setStepProvider(...)), and a lightweight offline Mock provider.
  • Interactive 3D STEP Preview: Inspect uploaded .step / .stp solids directly inside the Import modal (orbit/zoom, Iso/Top/Front/Side presets, bounding dimensions, triangle count, and auto-detected machining process) before generating ClearNC code.
  • Default-Off STEP Overlay + Live STEP Match % & Deviation Heatmap: Studio always renders pure ClearNC machined output by default. When a STEP model is imported, Studio computes a live area-weighted STEP Match % (Matched %, Uncut Rest Stock %, Overcut/Gouge %, Op 2/Workholding Side %, and exact mismatch locations) and provides opt-in STEP Overlay (translucent original STEP CAD) and color-coded Green/Blue/Red STEP Diff heatmap toggles for both 3-axis milling and 3D lathe cutaway views.
  • Local-First Tool Crib & Workholding Setup Manager: Full Mill Magazine & CNC Lathe Turret Tool Crib manager with curated metric starter toolkits, add/edit/duplicate/delete, search/filter, JSON export/import, Material/Stock/Workholding presets, and live decoupled T/H/D (tool_offsets) compiler integration persisted locally in browser IndexedDB.
  • Third-Party Provider Documentation: Full ABI, linear-memory safety, and v0.2.0 cad_mesh contract documented in docs/step-provider-abi.md.

2. 3-Tier Turning & Milling Cutting-Load & Spindle-Power Safety

  • Tier 1 Hard Errors (CNC-L16, CNC-M13): Blocks physically impossible cuts (e.g. 3.0 mm/rev on an R0.8 mm insert, radial DOC > 85% of ISO insert edge length, excessive parting/grooving plunge feeds, excessive drill feed-per-rev, milling chip-per-tooth > 25% of cutter diameter, and declared manufacturer tool-crib box limits max_doc/max_feed/max_fz/vc_min/vc_max).
  • Tier 2 Shop-Floor Warnings (CNC-L17, CNC-M14): Machine-specific spindle kW overload checks (comparing estimated cutting kW against each machine's rated spindle power across all 55 profiles), material-aware feed/speed overload, stainless/titanium work-hardening rubbing warnings, and theoretical turned surface roughness ($R_a &gt; 6.3\ \mu\text{m}$).
  • Tier 3 Shop Overrides: Supports wiper: true, high_feed: true, and explicit manufacturer tool-crib box limits so high-productivity specialty tooling passes without false blocks.

3. Milling & 5-Axis Clearance Safety

  • Chamfer Mill Cone Clearance (CNC-M15): Validates bevel capacity, detects cone tip-to-floor/jaw collisions below the chamfered edge (floor_z, tip_offset, tip_dia), and detects upper-cone wall collisions inside tight internal contours.
  • 3-Axis Multi-Stage Stepped Tool-Holder Clearance (CNC-M12): Checks multi-stage holder_stages radially against deep pockets, narrow slots, inside profiles, and active strap clamps.
  • 5-Axis Tilted Work-Envelope Travel Limits (CNC-5X06): Transforms workpiece + riser bounding envelopes through every tilted work plane (A, B, C) and verifies the resulting span fits inside the selected 5-axis machine's X/Y/Z travel envelope.

Verification

  • 268/268 Rust tests passing (0 warnings, 9/9 legacy golden hashes unchanged)
  • 55/55 verified CNC machines and 15/15 built-in examples verified in WebAssembly (0 errors, 0 crashes, 0 gouges)
  • Automated Tool Crib, zero-import STEP WASM C-ABI fixture, and STEP-vs-Machined deviation analysis verification passing
  • Live browser E2E verified against live v0.2.0 external STEP provider for both 3-axis milling and multi-feature CNC lathe parts