Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-08 21:13:35 +0300
committerHans Goudey <h.goudey@me.com>2022-04-08 21:13:35 +0300
commiteb40b231f9e11d8fec88b69e4c0146b4f0af8d47 (patch)
treed782e2b68eefc26b2d952985aef19dfb225c4a61 /source/blender/draw/intern
parentbc9c9631a46ffb8b7902e7c9801fe4ea9f638690 (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/draw/intern')
0 files changed, 0 insertions, 0 deletions