Page MenuHome

Curves: Port parameter node to the new data-block
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Mar 25 2022, 9:21 PM.

Details

Summary

Using the evaluated lengths cache from D14382, re-implement the
curve parameter node with the new data structure. Conceptually
it works the same way, but the code is restructured and cleaned up
a bit as well. This also adds support for Catmull Rom curves.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Mar 25 2022, 9:21 PM
Hans Goudey (HooglyBoogly) created this revision.
Hans Goudey (HooglyBoogly) retitled this revision from Curves: Port curve parameter node to the new data-block to Curves: Port parameter node to the new data-block.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/blenkernel/BKE_curves.hh
277

evalauted

source/blender/blenlib/intern/length_parameterize.cc
3 ↗(On Diff #49726)

Shouldn't be necessary in a .cc file.

source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc
55

Mention that this is done because there is no clear mapping between control points and points on the curve.

This revision is now accepted and ready to land.Mar 27 2022, 1:05 PM
source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc
3

Is this even used?

Hans Goudey (HooglyBoogly) marked 4 inline comments as done.Mar 30 2022, 3:10 AM