Skip to content
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

MeshTopology::collapseEdge(...) #3601

Merged
merged 4 commits into from
Nov 1, 2024
Merged

MeshTopology::collapseEdge(...) #3601

merged 4 commits into from
Nov 1, 2024

Conversation

Fedr
Copy link
Contributor

@Fedr Fedr commented Nov 1, 2024

  • Hidden collapseEdge function in MRMeshDecimate.cpp becomes public method of MeshTopology
  • The function takes only one std::function optional parameter, all other updates can be implemented via it
  • DecimateSettings::edgesToCollapse is updated during decimation.

@Fedr Fedr changed the title collapseEdge function simplifications MeshTopology::collapseEdge(...) Nov 1, 2024
@Fedr Fedr marked this pull request as ready for review November 1, 2024 12:53
@Fedr Fedr requested a review from Grantim November 1, 2024 12:53
/// collapses given edge in a vertex and deletes
/// 1) faces: left( e ) and right( e );
/// 2) vertex org( e )/dest( e ) if given edge was their only edge, otherwise only dest( e );
/// 3) edges: e, next( e.sym() ), prev( e.sym() ), and optionally next( e ), prev( e ) if their left and right triangles are deleted;
Copy link
Contributor

Choose a reason for hiding this comment

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

change edges and vertes? (if we delete optional edges from (3) then we should also delete optional org(e) from (2))?

/// 1) faces: left( e ) and right( e );
/// 2) vertex org( e )/dest( e ) if given edge was their only edge, otherwise only dest( e );
/// 3) edges: e, next( e.sym() ), prev( e.sym() ), and optionally next( e ), prev( e ) if their left and right triangles are deleted;
/// calls onEdgeDel for every deleted edge (del);
Copy link
Contributor

Choose a reason for hiding this comment

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

including e?

@Fedr Fedr merged commit 935419b into master Nov 1, 2024
1 of 5 checks passed
@Fedr Fedr deleted the simple/collapseEdge branch November 1, 2024 13:50
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