2D Contour on an open run with no material beside it skips the wall check

Open Beginner friendly
#4,736 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

Read crates/motion/src/machining2d/contour_run_side.rs, especially open_run_ride around lines 66–71 and the clear_of_part checks around lines 86 and 191. Trace the no-material-beside-the-run branch and run the relevant contour tests. Done when generation refuses this run by name and the reported wall-check failure is covered.

Written by the indexing model from the issue text.

Description

bug effort:high P3

What happens

Seen on main at 1012b1766 (release build, through camcraft-cli mcp). The shapes are made up.

The block 40 x 30 x 20 mm with a corner notch X0..20, Y0..15, Z10..20. Pick the shelf edge at Y0, Z10. 2D Contour, 8 mm flat end mill, Z20 to Z10.

  • Note: "no part material beside the open run at any level - the tool centre rides its line".
  • verify then finds 4 moves that "cut past the finish surface" and 2 rapids in the part at the wall X20. The gate reports 10.00 mm at (20.25, 0.25, z 10.00).
  • The op's own check holds the post, so the program is not posted. But the op should refuse by name at generation.
  • Z10 to Z5 (material on one side): clean. The same op on a shelf open at both ends: clean.

Cause (read from the code)

crates/motion/src/machining2d/contour_run_side.rs:66-71: when no level has material beside the run, open_run_ride returns the bare run early and does not call clear_of_part (:86, :191). clear_of_part is the check that refuses "an edge that ends at a wall".

Expected

Run clear_of_part on this branch too, so the op refuses the run by name at generation.

Related: #1928 (closed) and #1934, #1781, #2494.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TqA6P94KzvFCuSeiURqVod

Dominant language
Rust
Stars
8
Forks
11
Avg merge
10h 3m
Merged PRs (30d)
927

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NeoTech/Camcraft

All issues in NeoTech/Camcraft

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.