Bugfix: the non-manifold warning was spitting out wrong coordinates

This commit is contained in:
Alessandro Ranellucci 2013-01-25 18:02:01 +01:00
parent f555a1ecc2
commit 18280da1b3

View File

@ -152,9 +152,9 @@ sub check_manifoldness {
my ($first_bad_edge_id) =
grep { @{ $self->edges_facets->[$_] } != 2 } 0..$#{$self->edges_facets};
if (defined $first_bad_edge_id) {
warn sprintf "Warning: The input file contains a hole near edge %f-%f (not manifold). "
warn sprintf "Warning: The input file contains a hole near edge %f,%f,%f-%f,%f,%f (not manifold). "
. "You might want to repair it and retry, or to check the resulting G-code before printing anyway.\n",
@{$self->edges->[$first_bad_edge_id]};
map @{$self->vertices->[$_]}, @{$self->edges->[$first_bad_edge_id]};
return 0;
}
return 1;