Skip to content

[CURA-13024] Spike: merge thin parts of floor/roof/skin#2316

Draft
rburema wants to merge 10 commits intomainfrom
CURA-13024_spike_merge_rooffloor_to_skin
Draft

[CURA-13024] Spike: merge thin parts of floor/roof/skin#2316
rburema wants to merge 10 commits intomainfrom
CURA-13024_spike_merge_rooffloor_to_skin

Conversation

@rburema
Copy link
Copy Markdown
Member

@rburema rburema commented Apr 1, 2026

Merge roof/floor into skin or vice-versa, given a distance, where anything under this is considered 'too thin' and will be merged to the other areas when next to each other.

See frontend PR for the accompanying setting: Ultimaker/Cura#21515

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Test Results

31 tests  ±0   30 ✅ ±0   4s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    1 ❌ ±0 

For more details on these failures, see this check.

Results for commit fed0513. ± Comparison against base commit 2783da4.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Contributor

@wawanbreton wawanbreton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The global implementation is very elegant and should indeed work without edge-cases. I have a few suggestions/requests though, to be challenged of course 🙂

Comment thread src/FffGcodeWriter.cpp Outdated
Comment thread src/FffGcodeWriter.cpp
Comment thread src/FffGcodeWriter.cpp Outdated
Comment thread src/FffGcodeWriter.cpp Outdated
rburema and others added 2 commits April 1, 2026 14:19
Most notably, rewrite mergeThinOverlap a bit to do a mostly inplace alteration of the polygons, have some extra early-out(s) and move the method to where we can re-use it later should the need arise.

part of spike CURA-13024
Copy link
Copy Markdown
Contributor

@wawanbreton wawanbreton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one more possible optimization, otherwise looks good !

Comment thread src/utils/polygonUtils.cpp Outdated
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.

3 participants