Cutting data: refuse a tool diameter that is not positive and finite before computing speed and feed
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in crates/app/src/cutting.rs at crate::cutting::compute and trace how the tool diameter is used before speed and feed are calculated. Check the speeds command in camcraft-tools and the existing unit tests. Done means the computation refuses zero, negative, NaN, and infinite diameters with a message naming the tool and diameter, while valid diameter suggestions stay unchanged.
Written by the indexing model from the issue text.
Description
What
crate::cutting::compute (crates/app/src/cutting.rs) turns a tool's diameter into a spindle speed with n = Vc·1000/(π·D) and a feed with vf = fz·z·n. Since #4605 (PR #4607), fz_scale returns 0 for a diameter that is not positive and finite. For D = 0 the speed is then infinite and the feed is 0 × ∞, which is NaN. Before #4605 the feed was infinite. Both results are wrong.
The tool record refuses such a diameter, so a user cannot reach this path today. The review of PR #4607 noted it as a follow-up.
Expected
compute refuses, by name, a tool diameter that is not positive and finite, before any arithmetic. The suggestion then says why there is no number, as it does for an unknown material row.
Done means
compute(and thespeedscommand ofcamcraft-tools) refuse a diameter of 0, a negative diameter, NaN and infinity with a message that names the tool and the diameter.- A unit test pins each refusal on made-up values.
- No suggestion for a valid diameter changes.
Suggested labels (I cannot set labels): bug, area:tools, source:agent, effort:medium, P7.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NeoTech/Camcraft
-
area:ui effort:medium enhancement P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug effort:high P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NeoTech/Camcraft#4736 · 1 comment ·
Maintainers usually reply within 1 day
-
area:turning bug effort:low P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NeoTech/Camcraft#4707 · 1 comment ·
Maintainers usually reply within 1 day
-
area:sim bug effort:medium P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area:2d bug effort:high P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
All issues in NeoTech/Camcraft
Similar issues
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
Link Checker ReportOpenautomated issue report
Difficulty 1/5 Under an hour Newbie friendliness 76/100
ratatui/awesome-ratatui#598 ·
Maintainers usually reply within 1 day
-
area:core priority:high status:ready type:security
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
release
Difficulty 1/5 Under an hour Newbie friendliness 75/100
github/gh-aw-mcpg#17603 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day