diff options
author | Hans Goudey <h.goudey@me.com> | 2021-05-15 00:37:05 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-05-15 00:37:05 +0300 |
commit | e7e183aa2b99b8c787a2d2c357cdc4f61f0f6bf1 (patch) | |
tree | 6d3b4c52cef7bce0299e4f2951ffecc2cf84dba0 /source/blender/blenkernel/intern/spline_bezier.cc | |
parent | 3c978a73d1ffc287263b371a6a7e9b38cb169f45 (diff) |
Cleanup: Update / improve comments
Diffstat (limited to 'source/blender/blenkernel/intern/spline_bezier.cc')
-rw-r--r-- | source/blender/blenkernel/intern/spline_bezier.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/spline_bezier.cc b/source/blender/blenkernel/intern/spline_bezier.cc index ba0f33e0093..58a8f46730a 100644 --- a/source/blender/blenkernel/intern/spline_bezier.cc +++ b/source/blender/blenkernel/intern/spline_bezier.cc @@ -168,6 +168,10 @@ static float3 next_position(Span<float3> positions, const bool cyclic, const int return positions[i + 1]; } +/** + * Recalculate all #Auto and #Vector handles with positions automatically + * derived from the neighboring control points. + */ void BezierSpline::ensure_auto_handles() const { if (!auto_handles_dirty_) { @@ -504,7 +508,7 @@ Span<float3> BezierSpline::evaluated_positions() const /** * Convert the data encoded in #evaulated_mappings into its parts-- the information necessary * to interpolate data from control points to evaluated points between them. The next control - * point index result will not overflow the size of the vector. + * point index result will not overflow the size of the control point vectors. */ BezierSpline::InterpolationData BezierSpline::interpolation_data_from_index_factor( const float index_factor) const |