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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-09-17 21:25:10 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-09-17 21:25:10 +0400
commitf79ba8cec0022530ac09c86824fe0344d5ff33f0 (patch)
tree9a8a7b3e3fbfc22e394450243780fcd9ad16d5dd /utils
parent39449f9245ecd88b16c5c2a0894dc474da098829 (diff)
Update dump-stl.pl
Diffstat (limited to 'utils')
-rw-r--r--utils/dump-stl.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/dump-stl.pl b/utils/dump-stl.pl
index 86543832b..1810d9a3f 100644
--- a/utils/dump-stl.pl
+++ b/utils/dump-stl.pl
@@ -19,6 +19,7 @@ $ARGV[0] or usage(1);
if (-e $ARGV[0]) {
my $model = Slic3r::Format::STL->read_file($ARGV[0]);
my $mesh = $model->mesh;
+ $mesh->repair;
printf "VERTICES = %s\n", join ',', map "[$_->[0],$_->[1],$_->[2]]", @{$mesh->vertices};
printf "FACETS = %s\n", join ',', map "[$_->[0],$_->[1],$_->[2]]", @{$mesh->facets};
exit 0;