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
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-02-23 20:40:38 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-02-23 20:40:38 +0400
commit504962712b25379cf06a1623f055ed543ef2b621 (patch)
tree83ac0667da54aeb27ae8f58a03ff52b2f3b2b911 /t/layers.t
parent3eedd4bbed12648562c8b87ca9f8d7caefa62fde (diff)
Bugfix: when using low layer heights and support material, the contact regions were generated with a negative height. #1013
Diffstat (limited to 't/layers.t')
-rw-r--r--t/layers.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/layers.t b/t/layers.t
index 3d381788a..06688b336 100644
--- a/t/layers.t
+++ b/t/layers.t
@@ -1,4 +1,4 @@
-use Test::More tests => 4;
+use Test::More tests => 5;
use strict;
use warnings;
@@ -55,4 +55,15 @@ ok $test->(), "positive Z offset";
$config->set('z_offset', -0.8);
ok $test->(), "negative Z offset";
+{
+ my $config = Slic3r::Config->new_from_defaults;
+ $config->set('nozzle_diameter', [0.35]);
+ $config->set('layer_height', 0.1333);
+
+ my $print = Slic3r::Test::init_print('2x20x10', config => $config);
+ $print->init_extruders;
+ $_->region(0) for @{$print->objects->[0]->layers}; # init layer regions
+ ok $print->objects->[0]->layers->[1]->support_material_contact_height > 0, 'support_material_contact_height is positive';
+}
+
__END__