Skip to content

Avoid uneven contour points error#830

Merged
m-reuter merged 1 commit into
Deep-MI:devfrom
ClePol:codex/cc-contour-cardinality
May 29, 2026
Merged

Avoid uneven contour points error#830
m-reuter merged 1 commit into
Deep-MI:devfrom
ClePol:codex/cc-contour-cardinality

Conversation

@ClePol
Copy link
Copy Markdown
Member

@ClePol ClePol commented May 28, 2026

The previous fix in the CC pipeline skipped point interpolation when thickness endpoints matched with contour points. This lead to inconsisent numbers of points causing a crash later on. This PR should resolve that.

@ClePol ClePol marked this pull request as ready for review May 28, 2026 22:48
@m-reuter m-reuter requested a review from Copilot May 29, 2026 05:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes FastSurfer-CC contour thickness handling so level-path endpoint insertions keep contour point counts consistent across slices, avoiding downstream mesh construction failures.

Changes:

  • Updates insert_point_with_thickness to always insert a contour point, nudging matched existing vertices to avoid exact duplicates.
  • Removes the returned inserted boolean and updates endpoint-index bookkeeping accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-reuter m-reuter merged commit 7076ddb into Deep-MI:dev May 29, 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.

3 participants