Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-07 00:17:19 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-07 00:17:19 +0400
commitb42333feedbc51fe4211b270c4560def37346f2c (patch)
treed54616828fb2886a9531da9287da901bc1053b73
parent51dd4d4e8af54f17d8f6d969a32d6ff97411cb16 (diff)
Don't exit when admesh fails to repair a mesh, but continue
-rw-r--r--xs/src/admesh/connect.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/xs/src/admesh/connect.c b/xs/src/admesh/connect.c
index 1a455a628..18a137121 100644
--- a/xs/src/admesh/connect.c
+++ b/xs/src/admesh/connect.c
@@ -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;
}
@@ -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;
}