Cleanup/docs: Add comment to spline lookup factor method

This commit is contained in:
Hans Goudey 2021-12-12 18:03:30 -06:00
parent 92237f11eb
commit 03015a9b22
Notes: blender-bot 2023-05-05 09:07:10 +02:00
Referenced by issue #94045, Selecting vertices and centering the model crashes Blender
Referenced by issue #94033, Line Art - intersection lines do not receive weight transfers
Referenced by issue #107589, Regression: Failure to render stereoscopy correctly in background (rendering of curve objects with cycles and motion blur)
1 changed files with 8 additions and 1 deletions

View File

@ -196,9 +196,16 @@ class Spline {
*/
float factor;
};
/**
* Find the position on the evaluated spline at the given portion of the total length.
* The return value is the indices of the two neighboring points at that location and the
* factor between them, which can be used to look up any attribute on the evaluated points.
* \note This does not support extrapolation.
*/
LookupResult lookup_evaluated_factor(const float factor) const;
/**
* \note This does not support extrapolation currently.
* The same as #lookup_evaluated_factor, but looks up a length directly instead of
* a portion of the total.
*/
LookupResult lookup_evaluated_length(const float length) const;