diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-02-18 23:36:14 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-02-18 23:36:14 +0400 |
commit | a9e7204fc66b6bea65e938be85a30f94d1538b3b (patch) | |
tree | dd70f728cc7d2ae4b7362458d73e2e17200278b0 /utils | |
parent | de88144649b876bb59fa1b24cdb5121b50117d15 (diff) |
New slicing algorithm based on a topological approach rather than numeric. It should be much more robust
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/split_stl.pl | 4 |
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}); } } |