Blender Git Commit Log

Git Commits -> Revision 262b211

Revision 262b211 by Hans Goudey (master)
September 28, 2021, 17:14 (GMT)
Geometry Nodes: Mesh Point Cloud Conversion Nodes

This commit adds nodes to do direct conversion between meshes and point
clouds in geometry nodes. The conversion from mesh to points is helpful
to instance once per face, or once per edge, which was previously only
possibly with ugly work-arounds. Fields can be evaluated on the mesh
to pass them to the points with the attribute capture node.

The other conversion, point cloud to mesh vertices, is a bit less
obvious, though it is still a common request from users. It's helpful
for flexibility when passing data around, better visualization in the
viewport (and in the future, cycles), and the simplicity of points.

This is a step towards T91754, where point clouds are currently
combined with meshes when outputing to the next modifier after geometry
nodes. Since we're removing the implicit behavior for realizing
instances, it feels natural to use an explicit node to convert points
to vertices too.

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

Commit Details:

Full Hash: 262b2118565826177133013c324212c66d882456
Parent Commit: 7970645
Lines Changed: +368, -1

2 Added Paths:

/source/blender/nodes/geometry/nodes/node_geo_mesh_to_points.cc (+189, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_points_to_vertices.cc (+118, -0) (View)

9 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.cc (+2, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+36, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.cc (+1, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+2, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+2, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021