diff options
Diffstat (limited to 'tests/fff_print/test_model.cpp')
-rw-r--r-- | tests/fff_print/test_model.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fff_print/test_model.cpp b/tests/fff_print/test_model.cpp index 3378a8363..23c4a2d9a 100644 --- a/tests/fff_print/test_model.cpp +++ b/tests/fff_print/test_model.cpp @@ -2,6 +2,7 @@ #include "libslic3r/libslic3r.h" #include "libslic3r/Model.hpp" +#include "libslic3r/ModelArrange.hpp" #include <boost/nowide/cstdio.hpp> #include <boost/filesystem.hpp> @@ -41,8 +42,7 @@ SCENARIO("Model construction", "[Model]") { } } model_object->add_instance(); - model.arrange_objects(PrintConfig::min_object_distance(&config)); - model.center_instances_around_point(Slic3r::Vec2d(100, 100)); + arrange_objects(model, InfiniteBed{scaled(Vec2d(100, 100))}, ArrangeParams{scaled(min_object_distance(config))}); model_object->ensure_on_bed(); print.auto_assign_extruders(model_object); THEN("Print works?") { @@ -50,8 +50,8 @@ SCENARIO("Model construction", "[Model]") { print.apply(model, config); print.process(); boost::filesystem::path temp = boost::filesystem::unique_path(); - print.export_gcode(temp.string(), nullptr); - REQUIRE(boost::filesystem::exists(temp)); + print.export_gcode(temp.string(), nullptr, nullptr); + REQUIRE(boost::filesystem::exists(temp)); REQUIRE(boost::filesystem::is_regular_file(temp)); REQUIRE(boost::filesystem::file_size(temp) > 0); boost::nowide::remove(temp.string().c_str()); |