Skip to content

Add cutpath_centered to partition functions #1693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2025

Conversation

coryrc
Copy link
Contributor

@coryrc coryrc commented May 23, 2025

Fixes #1692

When tweaking cutsize and gap, the whole cut pattern can suddenly shift by half (cutsize+gap), which is really annoying. This change causes the cut pattern to always be centered on X=0.

Possibly controversially, it also makes this the default behaviour, which is backwards-incompatible. I think the old behaviour is a bad default, so I think it's worth changing the default, but I'm happy to change it if asked.

The example updates just make them a little prettier (so there aren't half-dovetails on the ends), in addition to showing this change.

Fixes BelfrySCAD#1692

When tweaking cutsize and gap, the whole cut pattern can suddenly shift by half (cutsize+gap), which is really annoying. This change causes the cut pattern to always be centered on X=0.

Possibly controversially, it also makes this the default behaviour, which is backwards-incompatible.
@revarbat revarbat added Enhancement New feature or request Breaking-Change This is not backwards-compatible. labels May 26, 2025
@revarbat revarbat merged commit a6cdbe3 into BelfrySCAD:master May 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking-Change This is not backwards-compatible. Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Partition mask should remain centered
2 participants