diff options
author | Erik Abrahamsson <erik85> | 2022-07-27 16:38:30 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-07-27 16:38:44 +0300 |
commit | c8ae1fce6024556b72c9e48c2b97c310aceb556c (patch) | |
tree | 31328550a7a4511f23a33a122cc4d671d4681400 /release/scripts/startup/nodeitems_builtins.py | |
parent | 9ac81ed6abfbd431aafd75969f8590703ebe122f (diff) |
Geometry Nodes: Shortest Paths nodes
This adds three new nodes:
* `Shortest Edge Paths`: Actually finds the shortest paths.
* `Edge Paths to Curves`: Converts the paths to separate curves.
This may generate a quadratic amount of data, making it slow
for large meshes.
* `Edge Paths to Selection`: Generates an edge selection that
contains all edges that are part of a path. This can be used
with the Separate Geometry node to only keep the edges that
are part of a path. For large meshes, this approach can be
much faster than the `Edge Paths to Curves` node, because
less data is created.
Differential Revision: https://developer.blender.org/D15274
Diffstat (limited to 'release/scripts/startup/nodeitems_builtins.py')
-rw-r--r-- | release/scripts/startup/nodeitems_builtins.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py index 6f3054100f8..2342ba33a3b 100644 --- a/release/scripts/startup/nodeitems_builtins.py +++ b/release/scripts/startup/nodeitems_builtins.py @@ -109,6 +109,8 @@ def mesh_node_items(context): if not space: return yield NodeItem("GeometryNodeDualMesh") + yield NodeItem("GeometryNodeEdgePathsToCurves") + yield NodeItem("GeometryNodeEdgePathsToSelection") yield NodeItem("GeometryNodeExtrudeMesh") yield NodeItem("GeometryNodeFlipFaces") yield NodeItem("GeometryNodeMeshBoolean") @@ -129,6 +131,7 @@ def mesh_node_items(context): yield NodeItem("GeometryNodeInputMeshFaceIsPlanar") yield NodeItem("GeometryNodeInputMeshIsland") yield NodeItem("GeometryNodeInputShadeSmooth") + yield NodeItem("GeometryNodeInputShortestEdgePaths") yield NodeItem("GeometryNodeInputMeshVertexNeighbors") yield NodeItemCustom(draw=lambda self, layout, context: layout.separator()) yield NodeItem("GeometryNodeSetShadeSmooth") |