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:
authorVojtech Bubnik <bubnikv@gmail.com>2021-04-12 12:06:09 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-04-12 12:06:09 +0300
commit978c3a6c8984bdf7d852bd071718e70ee11e0063 (patch)
tree5e62926a8c962c7b6d5ccb1c1a1c2c525bafe4a9 /tests/fff_print/test_support_material.cpp
parent580d739d6f377fcf76456051e1816aae2fb35bad (diff)
parentfcabe8a0f47807bb7efff3fdcecf35c49d02556b (diff)
Merge tag 'version_2.3.0' into stable
version_2.3.0
Diffstat (limited to 'tests/fff_print/test_support_material.cpp')
-rw-r--r--tests/fff_print/test_support_material.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/fff_print/test_support_material.cpp b/tests/fff_print/test_support_material.cpp
index 0a38d138e..01d858132 100644
--- a/tests/fff_print/test_support_material.cpp
+++ b/tests/fff_print/test_support_material.cpp
@@ -1,6 +1,7 @@
#include <catch2/catch.hpp>
#include "libslic3r/GCodeReader.hpp"
+#include "libslic3r/Layer.hpp"
#include "test_data.hpp" // get access to init_print, etc
@@ -22,6 +23,7 @@ SCENARIO("SupportMaterial: support_layers_z and contact_distance", "[SupportMate
// Box h = 20mm, hole bottom at 5mm, hole height 10mm (top edge at 15mm).
TriangleMesh mesh = Slic3r::Test::mesh(Slic3r::Test::TestMesh::cube_with_hole);
mesh.rotate_x(float(M_PI / 2));
+// mesh.write_binary("d:\\temp\\cube_with_hole.stl");
auto check = [](Slic3r::Print &print, bool &first_support_layer_height_ok, bool &layer_height_minimum_ok, bool &layer_height_maximum_ok, bool &top_spacing_ok)
{
@@ -75,7 +77,8 @@ SCENARIO("SupportMaterial: support_layers_z and contact_distance", "[SupportMate
{ "support_material", 1 },
{ "layer_height", 0.2 },
{ "first_layer_height", 0.4 },
- });
+ { "dont_support_bridges", false },
+ });
bool a, b, c, d;
check(print, a, b, c, d);
THEN("First layer height is honored") { REQUIRE(a == true); }
@@ -89,7 +92,8 @@ SCENARIO("SupportMaterial: support_layers_z and contact_distance", "[SupportMate
{ "support_material", 1 },
{ "layer_height", 0.2 },
{ "first_layer_height", 0.3 },
- });
+ { "dont_support_bridges", false },
+ });
bool a, b, c, d;
check(print, a, b, c, d);
THEN("First layer height is honored") { REQUIRE(a == true); }
@@ -103,7 +107,8 @@ SCENARIO("SupportMaterial: support_layers_z and contact_distance", "[SupportMate
{ "support_material", 1 },
{ "layer_height", 0.2 },
{ "first_layer_height", 0.3 },
- });
+ { "dont_support_bridges", false },
+ });
bool a, b, c, d;
check(print, a, b, c, d);
THEN("First layer height is honored") { REQUIRE(a == true); }