Skip to content

Add per-object depth control#36

Merged
jasonmadigan merged 1 commit into
tracefinity:mainfrom
daelsc:pr/per-object-depth
May 4, 2026
Merged

Add per-object depth control#36
jasonmadigan merged 1 commit into
tracefinity:mainfrom
daelsc:pr/per-object-depth

Conversation

@daelsc

@daelsc daelsc commented May 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • PlacedTool and FingerHole gain an optional depth_override that beats the bin's global cutout_depth. Resolution is fh.depth_overridepolygon.depth_override → global, clamped to [5, max_depth].
  • Chamfer is clamped per-feature against its own pocket depth, so deep cutouts get a full chamfer and shallow ones don't punch through the floor.
  • Bin Editor: click a placed tool to set the outline depth; click a finger hole to set that hole's depth. Empty input inherits; × resets. The existing CutoutOverlay is now interactive in the bin editor as well as the tool editor.

@jasonmadigan

Copy link
Copy Markdown
Collaborator

Needs a rebase, but I think this looks good

Each PlacedTool and FingerHole gains an optional depth_override that
takes precedence over the bin's global cutout_depth. Resolution is
fh.depth_override → polygon.depth_override → global, clamped to
[5, max_depth]. Chamfer is now clamped per-feature against its own
pocket depth so deep cutouts get a full chamfer and shallow ones
don't punch through the floor.

UI: select a placed tool to set the outline depth, or click an
individual finger hole to set the hole's depth. Empty input inherits;
× resets. CutoutOverlay was already interactive in the tool editor
and is now reused in the bin editor.

Closes #N (replace if you have an issue number)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@jasonmadigan
jasonmadigan force-pushed the pr/per-object-depth branch from f154b42 to 56533d3 Compare May 4, 2026 22:38
@jasonmadigan
jasonmadigan merged commit 48d8d67 into tracefinity:main May 4, 2026
1 check 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.

2 participants