diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-05 13:21:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-05 13:21:36 +0300 |
commit | 622c4e4953a0bd774bcbe3e1051ff56dc1933282 (patch) | |
tree | 488df0346d274205b98411c549b90974eb9ea667 /source/blender/blenkernel/intern/curve_poly.cc | |
parent | c7a345bd60d340449bf03646bc04624fe2396bb3 (diff) |
Cleanup: Further clarification and renaming of curve field inputs
Differentiate the total length of curves and the accumulated length
at each control point.
Diffstat (limited to 'source/blender/blenkernel/intern/curve_poly.cc')
-rw-r--r-- | source/blender/blenkernel/intern/curve_poly.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve_poly.cc b/source/blender/blenkernel/intern/curve_poly.cc index 2db7cd71ad3..1b337379604 100644 --- a/source/blender/blenkernel/intern/curve_poly.cc +++ b/source/blender/blenkernel/intern/curve_poly.cc @@ -110,7 +110,7 @@ void calculate_normals_minimum(const Span<float3> tangents, normals.first() = math::normalize(float3(first_tangent.y, -first_tangent.x, 0.0f)); } - /* Forward normal with minimum twist along the entire spline. */ + /* Forward normal with minimum twist along the entire curve. */ for (const int i : IndexRange(1, normals.size() - 1)) { normals[i] = calculate_next_normal(normals[i - 1], tangents[i - 1], tangents[i]); } @@ -120,7 +120,7 @@ void calculate_normals_minimum(const Span<float3> tangents, } /* Compute how much the first normal deviates from the normal that has been forwarded along the - * entire cyclic spline. */ + * entire cyclic curve. */ const float3 uncorrected_last_normal = calculate_next_normal( normals.last(), tangents.last(), tangents.first()); float correction_angle = angle_signed_on_axis_v3v3_v3( |