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
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/split_stl.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/split_stl.pl b/utils/split_stl.pl
index ec35211b4..6fbc0b324 100755
--- a/utils/split_stl.pl
+++ b/utils/split_stl.pl
@@ -31,7 +31,6 @@ my %opt = ();
# loop while we have remaining facets
my $part_count = 0;
- $mesh->make_edge_table;
while (1) {
# get the first facet
my @facet_queue = ();
@@ -53,7 +52,8 @@ my %opt = ();
my $output_file = sprintf '%s_%02d.stl', $basename, ++$part_count;
printf "Writing to %s\n", basename($output_file);
- Slic3r::STL->write_file($output_file, Slic3r::TriangleMesh->new(facets => \@facets), !$opt{ascii});
+ my $new_mesh = Slic3r::TriangleMesh->new(facets => \@facets, vertices => $mesh->vertices);
+ Slic3r::STL->write_file($output_file, $new_mesh, !$opt{ascii});
}
}