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:
authorVojtech Bubnik <bubnikv@gmail.com>2022-03-31 17:26:04 +0300
committerPavelMikus <pavel.mikus.mail@seznam.cz>2022-04-25 13:42:51 +0300
commit42e802c1b8db55cf132f1d00ecfa0128977dc4c5 (patch)
tree067c8b59be2b7712c8b0d15c082a99df7bf2aeea /tests
parentbd8ce6fabd8809223e8b2e4e8985f8bc6857d8e3 (diff)
Refactoring of Curves.hpp for better memory management and vectorization
(replaced vector of vectors with Eigen 2D matrices).
Diffstat (limited to 'tests')
-rw-r--r--tests/libslic3r/test_curve_fitting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libslic3r/test_curve_fitting.cpp b/tests/libslic3r/test_curve_fitting.cpp
index a38e9b5a0..faf7839c7 100644
--- a/tests/libslic3r/test_curve_fitting.cpp
+++ b/tests/libslic3r/test_curve_fitting.cpp
@@ -111,8 +111,8 @@ TEST_CASE("Curves: polynomial fit test", "[Curves]") {
auto poly = fit_polynomial(observations, observation_points, weights, 2);
- REQUIRE(poly.coefficients[0](0) == ap(1));
- REQUIRE(poly.coefficients[0](1) == ap(-2));
- REQUIRE(poly.coefficients[0](2) == ap(1));
+ REQUIRE(poly.coefficients(0, 0) == ap(1));
+ REQUIRE(poly.coefficients(0, 1) == ap(-2));
+ REQUIRE(poly.coefficients(0, 2) == ap(1));
}