Skip to content

isFillingMultipleEdgeFree function#5889

Merged
Fedr merged 6 commits intomasterfrom
test/HoleFillPlan
Apr 6, 2026
Merged

isFillingMultipleEdgeFree function#5889
Fedr merged 6 commits intomasterfrom
test/HoleFillPlan

Conversation

@Fedr
Copy link
Copy Markdown
Contributor

@Fedr Fedr commented Apr 5, 2026

New function isFillingMultipleEdgeFree that can be used for checking checking a fill plan that was generated before filling other holes. If the function returns false just call fillHole instead of executing bad plan.

Tests added.

@Fedr Fedr changed the title TEST( MRMesh, HoleFillPlan ) doesFillingMultipleEdgeFree function Apr 5, 2026
@Fedr Fedr requested a review from Grantim April 5, 2026 11:27
Comment on lines +193 to +196
/// returns true if executeHoleFillPlan() with the same topology and plan
/// does not introduce any edge with the same end-vertices as any existed edge in the mesh;
/// note: this function can be used for checking filling plans generated independently before executing them one by one
[[nodiscard]] MRMESH_API bool doesFillingMultipleEdgeFree( const MeshTopology & topology, const HoleFillPlan & plan );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does->is?


/// returns true if executeHoleFillPlan() with the same topology and plan
/// does not introduce any edge with the same end-vertices as any existed edge in the mesh;
/// note: this function can be used for checking filling plans generated independently before executing them one by one
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could it really be used before executing several filling plans at once, or should be called before executing each one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated comment

@Fedr Fedr changed the title doesFillingMultipleEdgeFree function isFillingMultipleEdgeFree function Apr 6, 2026
@Fedr Fedr merged commit d17be99 into master Apr 6, 2026
27 checks passed
@Fedr Fedr deleted the test/HoleFillPlan branch April 6, 2026 09:33
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