From d33aa906cd824a7bf23c681bf79db5fe3157a532 Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Mon, 4 Jul 2022 20:19:59 +0200 Subject: [PATCH] fixed a typo --- easy3d/core/spline_curve_fitting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy3d/core/spline_curve_fitting.h b/easy3d/core/spline_curve_fitting.h index 2c3bb2e5e..0f6ae571c 100644 --- a/easy3d/core/spline_curve_fitting.h +++ b/easy3d/core/spline_curve_fitting.h @@ -222,7 +222,7 @@ namespace easy3d { for (std::size_t i = 0; i < steps; ++i) { const FT u = static_cast(i) / static_cast(steps - 1); parameters[i] = u; - const vec3 pos = eval_f(u); + const Point_t pos = eval_f(u); if (i > 0) lengths[i] = lengths[i - 1] + distance(pos, prev_point); prev_point = pos;