Blender Git Loki

Git Commits -> Revision 1892b13

Revision 1892b13 by Hans Goudey (master)
May 12, 2021, 15:21 (GMT)
Geometry Nodes Curves: Expose first builtin point attributes

This commit exposes the first spline control point attributes. The
implementation incorporates the attributes into the virtual array
system, providing efficient methods to flatten the data into a
contiguous array and to apply changes from a flattened array. This
is only part of the eventual goal, which includes changes to run
attribute nodes separately for each spline to completely avoid copying.

So far `tilt` and `radius`, the two generic attributes common to
all spline types, are implemented. The more complex `position`
attribute is also added. It requires some special handling for Bezier
splines, where the control point handles need to be moved along with
the control points. To make that work I also added automatic handle
recalculation to the Bezier spline.

Differential Revision: https://developer.blender.org/D11187

Commit Details:

Full Hash: 1892b131edc76abb4439ca6fcc69b95a208ab7d7
Parent Commit: 8dc95f6
Lines Changed: +515, -3

3 Modified Paths:

/source/blender/blenkernel/BKE_spline.hh (+7, -2) (Diff)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+426, -1) (Diff)
/source/blender/blenkernel/intern/spline_bezier.cc (+82, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021