Blender Git Loki

Git Commits -> Revision 675677e

Revision 675677e by Hans Goudey (master)
June 9, 2021, 19:53 (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: 675677ec67c6b922b3a5e602c8bf3dbb562bd687
Parent Commit: df2a19e
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021