Blender Git Loki

Git Commits -> Revision ba3a0dc

Revision ba3a0dc by Hans Goudey (master)
March 13, 2021, 19:13 (GMT)
Geometry Nodes: Add "normal" attribute for face normals

This commit adds a `normal` attribute on the polygon domain. Since
normal data is derived data purely based off of the location of each
face's vertices, it is exposed as a read-only attribute. After
rB80f7f1070f17, this attribute can be interpolated to the other domains.

Since this attribute is a special case compared to the others, the
implementation subclasses `BuiltinAttributeProvider`. It's possible
there is a better way to abstract this. Something else might also
become apparent if we add similar read-only attributes.

See rB2966871a7a891bf36 for why this is preferred over the previous
implementation.

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

Commit Details:

Full Hash: ba3a0dc9ba91e2f55e3632a69f8671079d871a94
Parent Commit: 2966871
Lines Changed: +64, -3

3 Modified Paths:

/source/blender/blenkernel/intern/geometry_component_mesh.cc (+62, -1) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021