Skip to content

Commit

Permalink
Do not allow to move required vertices in xreg option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed May 17, 2024
1 parent 01141ba commit ea4a796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mmg3d/analys_3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ int MMG3D_regver(MMG5_pMesh mesh) {
tabl[iad+1] = ppt->c[1];
tabl[iad+2] = ppt->c[2];
if ( !MG_VOK(ppt) ) continue;
if ( ppt->tag & MG_CRN || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;
if ( MG_SIN(ppt->tag) || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;

iel = ppt->s;
if ( !iel ) continue; // Mmg3d
Expand Down Expand Up @@ -1048,7 +1048,7 @@ int MMG3D_regver(MMG5_pMesh mesh) {
ppt = &mesh->point[k];

if ( !MG_VOK(ppt) ) continue;
if ( ppt->tag & MG_CRN || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;
if ( MG_SIN(ppt->tag) || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;

iel = ppt->s;
if ( !iel ) continue; // Mmg3d
Expand Down
4 changes: 2 additions & 2 deletions src/mmgs/analys_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ int MMGS_regver(MMG5_pMesh mesh) {
tabl[iad+2] = ppt->c[2];

if ( !MG_VOK(ppt) ) continue;
if ( ppt->tag & MG_CRN || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;
if ( MG_SIN(ppt->tag) || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;

iel = ppt->s;

Expand Down Expand Up @@ -893,7 +893,7 @@ int MMGS_regver(MMG5_pMesh mesh) {
ppt = &mesh->point[k];

if ( !MG_VOK(ppt) ) continue;
if ( ppt->tag & MG_CRN || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;
if ( MG_SIN(ppt->tag) || ppt->tag & MG_NOM || MG_EDG(ppt->tag) ) continue;

iel = ppt->s;

Expand Down

0 comments on commit ea4a796

Please sign in to comment.