-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Flip chord topology reorder #9588
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
Changes from 3 commits
4b0e8b6
d63c69b
f9af469
c7d633d
d86ad30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1308,10 +1308,15 @@ bool topology_test(const typename C3t3::Edge& edge, | |
| for (int i = 1; i < 4; i++) | ||
| { | ||
| Vertex_handle vi = f.first->vertex((f.second + i) % 4); | ||
| if (vi != v0 && vi != v1 && nb_incident_subdomains(vi, c3t3) > 1) | ||
| if (vi != v0 && vi != v1) | ||
| { | ||
| if (is_edge_in_complex(v0, vi, c3t3) | ||
| && is_edge_in_complex(v1, vi, c3t3)) | ||
| //(v0,vi) and (v1,vi) are edges of f, so testing them for the | ||
| //complex needs no is_edge() star walk, and feature edges are rare | ||
| //enough that the subdomain star walk is skipped almost always. | ||
| //The three tests are pure, so the conjunction is unchanged. | ||
| if (c3t3.is_in_complex(v0, vi) | ||
| && c3t3.is_in_complex(v1, vi) | ||
| && nb_incident_subdomains(vi, c3t3) > 1) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In theory it is possible to have a corner (0d-in-complex) or feature edge (1d-in-complex) that has only one incident subdomain, like for example a needle in the middle of a sphere. I agree that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree that case is missed, but nb_incident_subdomains(vi, c3t3) > 1 was not introduced by this PR. I would rather not change it here, since dropping the subdomain clause makes topology_test stricter and would reject collapses that are currently accepted, i.e. it changes remeshing output and needs its own quality evaluation.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's leave it unchanged for now, and only reorder conditions by cost |
||
| return false; | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.