Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Jul 4, 2022
1 parent 95fe719 commit d33aa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy3d/core/spline_curve_fitting.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ namespace easy3d {
for (std::size_t i = 0; i < steps; ++i) {
const FT u = static_cast<FT>(i) / static_cast<FT>(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;
Expand Down

0 comments on commit d33aa90

Please sign in to comment.