Skip to content

Fast fix of unefficiency or the setVertexNmTag function visible only …#216

Merged
Algiane merged 1 commit intodevelopfrom
feature/fix-boulernm-efficiency
Jun 10, 2023
Merged

Fast fix of unefficiency or the setVertexNmTag function visible only …#216
Algiane merged 1 commit intodevelopfrom
feature/fix-boulernm-efficiency

Conversation

@Algiane
Copy link
Copy Markdown
Member

@Algiane Algiane commented Jun 10, 2023

…for a high number of nm points (due to boulernm unefficiency).

…for a high number of nm points (due to boulernm unefficiency).
@Algiane Algiane added kind: enhancement enhancement to an existing feature part: mmg3d mmg3d specific part: surface model specific to surface model priority: high linked to blocking behaviour or to a close deadline labels Jun 10, 2023
@Algiane Algiane merged commit 6824158 into develop Jun 10, 2023
else if ( ph->a ) {
while ( ph->nxt && ph->nxt < hash->max ) {
ph = &hash->item[ph->nxt];
if ( ph->a == ia && ph->b == ib ) continue;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Remark: This erroneous continue was leading to add a new edge in the hash table even if this edge was already listed. In consequence, the counted number of non-manifold edges was sometime greater than the real nomber of nm edges passing through the point, leading to add spurious required vertices.

See the attached example where 2 spurious required vertices are added.

nm-save-serial.mesh.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: enhancement enhancement to an existing feature part: mmg3d mmg3d specific part: surface model specific to surface model priority: high linked to blocking behaviour or to a close deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant