diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-08 21:13:35 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-08 21:13:35 +0300 |
commit | eb40b231f9e11d8fec88b69e4c0146b4f0af8d47 (patch) | |
tree | d782e2b68eefc26b2d952985aef19dfb225c4a61 /source/blender/CMakeLists.txt | |
parent | bc9c9631a46ffb8b7902e7c9801fe4ea9f638690 (diff) |
Add a utility for sampling segment indices and factors from arbitrary
lengths along a set of points. This can be used for the sample curves
node, or finding new points along a curve when extending
or shrinking it.
This commit uses it in the snake hook brush as an example.
The logic is similar to the uniform length sampling, but the next
sample length is retrieved from the input instead of multiplication.
For the sample node in the future, though this sort of sampling can be
potentially done more efficiently for specific curve types besides
poly curves, it's simpler, at least as a start, to work on a set of
evaluated points that can be treated like a poly curve.
Differential Revision: https://developer.blender.org/D14571
Diffstat (limited to 'source/blender/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions