Blender Git Commit Log

Git Commits -> Revision e305dae

Revision e305dae by Hans Goudey (soc-2021-curves)
June 21, 2021, 14:31 (GMT)
Splines: Add API functions for interpolating data

First, expand on the interpolation to evaluated points with a templated
helper function, and a function that takes a GSPan. Next, add a set of
functions to `Spline` for interpolating at arbitrary intervals between
the evaluated points. The code for doing that isn't that complicated
anyway, but it's nice to avoid repeating, and it might make it easier
to unroll the special cases for the first and last points if we require
the index factors to be sorted.

Commit Details:

Full Hash: e305daeebd45d30557675efbeda7b5f99dbb82f7
Parent Commit: fc7b625
Committed By: Dilith Jayakody
Lines Changed: +94, -61

5 Modified Paths:

/source/blender/blenkernel/BKE_spline.hh (+26, -0) (Diff)
/source/blender/blenkernel/intern/spline_base.cc (+39, -2) (Diff)
/source/blender/blenkernel/intern/spline_nurbs.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc (+24, -53) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021