diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-16 23:47:00 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-16 23:47:00 +0300 |
commit | 8538c69921662164677d81cfeb9cbd738db1051e (patch) | |
tree | 652399d910a385901027de5f14f754649256044c /source/blender/blenkernel/CMakeLists.txt | |
parent | 9af791f8739edcb4fed15cda635cedf83987813c (diff) |
Curves: Initial evaluation for curves data-block
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 works the same way as existing code.
The Catmull Rom implementation is new, with the basis function
based on Cycles code. All three types have some basic tests.
For NURBS and Catmull Rom curves, 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
Differential Revision: https://developer.blender.org/D14284
Diffstat (limited to 'source/blender/blenkernel/CMakeLists.txt')
-rw-r--r-- | source/blender/blenkernel/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt index 2e32652647c..2aedd26616e 100644 --- a/source/blender/blenkernel/CMakeLists.txt +++ b/source/blender/blenkernel/CMakeLists.txt @@ -107,10 +107,13 @@ set(SRC intern/curves.cc intern/curves_geometry.cc intern/curve_bevel.c + intern/curve_bezier.cc + intern/curve_catmull_rom.cc intern/curve_convert.c intern/curve_decimate.c intern/curve_deform.c intern/curve_eval.cc + intern/curve_nurbs.cc intern/curve_to_mesh_convert.cc intern/curveprofile.cc intern/customdata.cc |