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:
authorAlessandro Ranellucci <aar@cpan.org>2012-02-18 23:36:14 +0400
committerAlessandro Ranellucci <aar@cpan.org>2012-02-18 23:36:14 +0400
commita9e7204fc66b6bea65e938be85a30f94d1538b3b (patch)
treedd70f728cc7d2ae4b7362458d73e2e17200278b0 /utils
parentde88144649b876bb59fa1b24cdb5121b50117d15 (diff)
New slicing algorithm based on a topological approach rather than numeric. It should be much more robust
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});
}
}