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
path: root/tests
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2020-02-09 11:43:15 +0300
committerbubnikv <bubnikv@gmail.com>2020-02-09 11:43:15 +0300
commite7d2fcf0be7a524eb8bf40dd2964539534934e96 (patch)
treef90c96c4859a2371b41a51f045997793108988bf /tests
parent76433da64c24c5aa73ac247bf963fef9c313dadf (diff)
Fixed unit tests broken with the previous commit (Spiral Vase fix).
Fixed a crash in the previous commit.
Diffstat (limited to 'tests')
-rw-r--r--tests/sla_print/sla_print_tests.cpp2
-rw-r--r--tests/sla_print/sla_test_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/sla_print/sla_print_tests.cpp b/tests/sla_print/sla_print_tests.cpp
index 32bca4ec0..10f5742d3 100644
--- a/tests/sla_print/sla_print_tests.cpp
+++ b/tests/sla_print/sla_print_tests.cpp
@@ -54,7 +54,7 @@ TEST_CASE("Support point generator should be deterministic if seeded",
auto slicegrid = grid(float(gnd), float(zmax), layer_h);
std::vector<ExPolygons> slices;
- slicer.slice(slicegrid, CLOSING_RADIUS, &slices, []{});
+ slicer.slice(slicegrid, SlicingMode::Regular, CLOSING_RADIUS, &slices, []{});
point_gen.seed(0);
point_gen.execute(slices, slicegrid);
diff --git a/tests/sla_print/sla_test_utils.cpp b/tests/sla_print/sla_test_utils.cpp
index 44a15ff90..a844b2eae 100644
--- a/tests/sla_print/sla_test_utils.cpp
+++ b/tests/sla_print/sla_test_utils.cpp
@@ -98,7 +98,7 @@ void test_supports(const std::string &obj_filename,
auto layer_h = 0.05f;
out.slicegrid = grid(float(gnd), float(zmax), layer_h);
- slicer.slice(out.slicegrid , CLOSING_RADIUS, &out.model_slices, []{});
+ slicer.slice(out.slicegrid, SlicingMode::Regular, CLOSING_RADIUS, &out.model_slices, []{});
sla::cut_drainholes(out.model_slices, out.slicegrid, CLOSING_RADIUS, drainholes, []{});
// Create the special index-triangle mesh with spatial indexing which