Skip to content

Commit

Permalink
Don't exit when admesh fails to repair a mesh, but continue
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Jul 6, 2013
1 parent 51dd4d4 commit b42333f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions xs/src/admesh/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,11 @@ stl_change_vertices(stl_file *stl, int facet_num, int vnot,
if(facet_num == first_facet)
{
/* back to the beginning */
printf("\
/*printf("\
Back to the first facet changing vertices: probably a mobius part.\n\
Try using a smaller tolerance or don't do a nearby check\n");
Try using a smaller tolerance or don't do a nearby check\n");*/
printf("Failed to repair mesh (back to the first facet changing vertices: probably a mobius part)\n");
return;
exit(1);
break;
}
Expand Down Expand Up @@ -1084,9 +1086,11 @@ stl_fill_holes(stl_file *stl)
if(facet_num == first_facet)
{
/* back to the beginning */
printf("\
/* printf("\
Back to the first facet filling holes: probably a mobius part.\n\
Try using a smaller tolerance or don't do a nearby check\n");
Try using a smaller tolerance or don't do a nearby check\n"); */
printf("Failed to repair mesh (back to the first facet filling holes: probably a mobius part)\n");
return;
exit(1);
break;
}
Expand Down

0 comments on commit b42333f

Please sign in to comment.