Completely rewritten the slicing algorithm

It should work with any model now. There are still problems with some
bridges.
This commit is contained in:
Alessandro Ranellucci 2011-10-09 19:47:21 +02:00
parent ad27f25c71
commit 459577f9a2
8 changed files with 137 additions and 246 deletions

View file

@ -16,10 +16,13 @@ sub go {
my $t0 = [gettimeofday];
# skein the STL into layers
# each layer has surfaces with holes; surfaces are distinguished
# in top/bottom/internal
# each layer has surfaces with holes
my $print = Slic3r::Print->new_from_stl($self->input_file);
# this will detect the type of each surface (top/bottom/internal)
# by splitting them if necessary
$print->detect_surfaces_type;
# this will remove unprintable surfaces
# (those that are too tight for extrusion)
$print->remove_small_surfaces;