diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2020-04-23 19:17:37 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2020-04-23 19:17:37 +0300 |
commit | 89d376dc35cebbbdf0f2bdefcb6828f48f18d9dc (patch) | |
tree | 4dc52fd685d76a00e89e3df0162b841b613e15b0 /tests | |
parent | 9bc96bf28e42ba6959283fbb731e23bb878cf579 (diff) |
Add min_object_distance method as free function taking ConfigBase argument
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fff_print/test_data.cpp | 2 | ||||
-rw-r--r-- | tests/fff_print/test_model.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/fff_print/test_data.cpp b/tests/fff_print/test_data.cpp index c2c6a5f33..77c82d77b 100644 --- a/tests/fff_print/test_data.cpp +++ b/tests/fff_print/test_data.cpp @@ -167,7 +167,7 @@ void init_print(std::vector<TriangleMesh> &&meshes, Slic3r::Print &print, Slic3r object->add_volume(std::move(t)); object->add_instance(); } - model.arrange_objects(PrintConfig::min_object_distance(&config)); + model.arrange_objects(min_object_distance(config)); model.center_instances_around_point(Slic3r::Vec2d(100, 100)); for (ModelObject *mo : model.objects) { mo->ensure_on_bed(); diff --git a/tests/fff_print/test_model.cpp b/tests/fff_print/test_model.cpp index 3378a8363..addb2cd7a 100644 --- a/tests/fff_print/test_model.cpp +++ b/tests/fff_print/test_model.cpp @@ -41,7 +41,7 @@ SCENARIO("Model construction", "[Model]") { } } model_object->add_instance(); - model.arrange_objects(PrintConfig::min_object_distance(&config)); + model.arrange_objects(min_object_distance(config)); model.center_instances_around_point(Slic3r::Vec2d(100, 100)); model_object->ensure_on_bed(); print.auto_assign_extruders(model_object); |