Bugfix: sparse and wrong infill was generated for objects with null fill density. Also fixed a division by zero.

This commit is contained in:
Alessandro Ranellucci 2011-11-27 10:12:44 +01:00
parent 22551b64de
commit 4cdd0f6fd0
4 changed files with 30 additions and 12 deletions

View file

@ -35,9 +35,9 @@ sub go {
$perimeter_maker->make_perimeter($_) for @{$print->layers};
}
# this will prepare surfaces for perimeters by merging all
# surfaces in each layer; it will also clip $layer->surfaces
# to the infill boundaries and split them in top/bottom/internal surfaces
# this will clip $layer->surfaces to the infill boundaries
# and split them in top/bottom/internal surfaces;
# if fill density is null, it will delete all internal surfaces
$self->status_cb->(30, "Detecting solid surfaces...");
$print->detect_surfaces_type;