diff options
author | Alan Babu <alanaman> | 2022-01-21 18:26:40 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-21 18:26:40 +0300 |
commit | c39d514a4eacd4a883775a3fcd8b5a7d8e8e52cc (patch) | |
tree | c1f4e90a3e961eb78a36051ba46305033cd326c9 /source/blender/blenkernel/BKE_node.h | |
parent | 4251455dcd739bb54c4dda8d9fd64460660e5b5f (diff) |
Geometry Nodes: Flip Faces Node
Currently there is no way to flip normals in geometry nodes. This node
makes that possible by flipping the winding order of selected faces.
The node is purposely not called "Flip Normals", because normals are
derived data, changing them is only a side effect. The real change is
that the vertex and edge indices in the face corners of every selected
polygon are reversed, and face corner attribute data is reversed.
While there are existing utilities to flip a polygon and its custom
data, this node aims to process an attribute's data together instead
of processing all attributes separately for each index.
Differential Revision: https://developer.blender.org/D13809
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 1ee8c91ff3e..ccea76fc24d 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -1630,6 +1630,7 @@ int ntreeTexExecTree(struct bNodeTree *ntree, #define GEO_NODE_INPUT_MESH_EDGE_ANGLE 1147 #define GEO_NODE_FIELD_AT_INDEX 1148 #define GEO_NODE_CURVE_PRIMITIVE_ARC 1149 +#define GEO_NODE_FLIP_FACES 1150 /** \} */ |