This patch adds evaluation for NURBS, Bezier, and Catmull Rom
curves for the new Curves data-block. The main difference from
the code in BKE_spline.hh is that the functionality is not
encapsulated in classes. Instead, each function has arguments
for all of the information it needs. This makes the code more
reusable and removes a bunch of unnecessary complications
for keeping track of state.
NURBS and Bezier evaluation work the same way as existing code.
The Catmull Rom implementation is new with the basis function,
based on Cycles code. I added some basic tests for it.
For NURBS and Catmull Romcurves, evaluating positions is the same
as any generic attribute, so it's implemented by the generic interpolation
to evaluated points. Bezier curves are a bit special, because the "handle"
control points are stored in a separate attribute. This patch doesn't
include generic interpolation to evaluated points for Bezier curves.
Ref T95942