Skip to content

Commit

Permalink
Merge pull request #205 from coprigent/feature/warning_check_mani
Browse files Browse the repository at this point in the history
Non manifold surface does not lead to an error anymore : warning instead
  • Loading branch information
Algiane authored Mar 3, 2023
2 parents e90af3f + 585c7d4 commit bdfec01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/mmg3d/mmg3d1_delone.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,19 +1141,16 @@ int MMG5_mmg3d1_delone(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int *permNodGlob) {
return 0;
}

int ier = 1;

if ( mesh->info.iso && !MMG3D_chkmani(mesh) ) {
fprintf(stderr,"\n ## Non orientable implicit surface. Exit program.\n");
ier = 0;
fprintf(stdout,"\n ## Warning: %s: Non orientable implicit surface.\n",__func__);
}

if ( PROctree ) {
/*free PROctree*/
MMG3D_freePROctree(mesh,&PROctree);
}

return ier;
return 1;
}

#endif
4 changes: 2 additions & 2 deletions src/mmg3d/mmg3d1_pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ int MMG5_mmg3d1_pattern(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int *permNodGlob) {
}

if ( mesh->info.iso && !MMG3D_chkmani(mesh) ) {
fprintf(stderr,"\n ## Non orientable implicit surface. Exit program.\n");
return 0;
fprintf(stdout,"\n ## Warning: %s: Non orientable implicit surface.\n",__func__);
return 1;
}

return 1;
Expand Down

0 comments on commit bdfec01

Please sign in to comment.