Blender Git Loki

Git Commits -> Revision 48ddb94

Revision 48ddb94 by Hans Goudey (master)
December 17, 2020, 18:22 (GMT)
Geometry Nodes: Point separate and attribute compare nodes

This patch adds two related nodes, a node for separating points
and mesh vertices based on a boolean attribute input, and a node
for creating boolean attributes with comparisons.

See the differential for an example file and video.

Point Separate (T83059)
The output in both geometries is just point data, contained in the mesh
and point cloud components, depending which components had data in the
input geometry. Any points with the mask attribute set to true will be
moved from the first geometry output to the second. This means that
for meshes, all edge and face data will be removed. Any point domain
attributes are moved to the correct output geometry as well.

Attribute Compare (T83057)
The attribute compare does the "Equal" and "Not Equal" operations by
comparing vectors and colors based on their distance from each other.
For other operations, the comparison is between the lengths of the
vector inputs. In general, the highest complexity data type is used
for the operation, and a new function to determine that is added.

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

Commit Details:

Full Hash: 48ddb94a26611a27d24ec02c2275b4f1fe27f87f
Parent Commit: e7b6983
Lines Changed: +790, -15

2 Added Paths:

/source/blender/nodes/geometry/nodes/node_geo_attribute_compare.cc (+362, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_point_separate.cc (+212, -0) (View)

14 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+2, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+2, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+12, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+14, -2) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+69, -12) (Diff)
/source/blender/nodes/CMakeLists.txt (+2, -0) (Diff)
/source/blender/nodes/geometry/node_geometry_util.cc (+42, -0) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+2, -0) (Diff)
/source/blender/nodes/intern/math_functions.cc (+30, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+2, -0) (Diff)
/source/blender/nodes/NOD_math_functions.hh (+34, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021