Skip to content

(feat) Add the Refine tool for restoring edges on scans - #40

Merged
nimerix merged 186 commits into
mainfrom
feature/scan-restoration
Nov 21, 2026
Merged

nimerix merged 186 commits into
mainfrom
feature/scan-restoration

Conversation

@nimerix

@nimerix nimerix commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Refine, a tool for restoring sharpness that a 3D scan has rounded off. It rebuilds a softened edge from a line, arc or spline guide laid along it, and smooths, flattens or shape-snaps a painted region while keeping rivets and other detail that stands off the surface.
  • Add crease, flatten and smooth brushes, and Detect, which proposes guides and regions to accept or adjust.
  • Read narrow lips and rims, and guides laid beside the edge rather than on it. Width is measured from the edge the tool finds. A line laid along an edge that clearly curves follows the curve.
  • Refuse a guide where one smooth surface explains the whole band, so a smooth wall is not creased.
  • Add the Refine user guide, its design spec and plans, and a release note.

Testing

  • npm test - 1,894 passed, 12 skipped. Three of the skipped tests record the second-pass faults listed below.
  • npm run build and npm run format:check - passed.
  • Browser tests for Refine and the documentation (refine.spec.ts, refine-reference.spec.ts, documentation.spec.ts) - 40 passed, 2 skipped.
  • Not passing: an earlier whole-suite browser run on this branch failed three tests outside Refine: large-imports.spec.ts:245, regressions.spec.ts:238 and whats-new.spec.ts:11. They were not run on main.

Known limits

  • A rivet beside an inside edge can still move: up to 0.014 mm when the guide is laid beside the edge, and 0.053 to 0.064 mm when the rivet's foot reaches into the rounding.
  • The smooth-surface check refuses one real 35 degree edge between two curved faces that solved without it. Its margin between smooth surfaces and real edges is thin.
  • Running a guide again over its own result is unreliable: it can cut in several pieces, move the edge further or be refused. The cause was not found.
  • Shallow rounded ridges and bends of about 20 degrees are accepted as edges.
  • The preview tint leaves out some joint vertices that Apply moves, by up to 0.041 mm.
  • On the two reference scans, 12 of 20 test guides cut cleanly in one piece and seven are refused.

@nimerix
nimerix merged commit 913b147 into main Nov 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant