Nodes: Display all links in cycle #107680

Open
Iliya Katushenock wants to merge 11 commits from mod_moder/blender:tmp_fix_link_validation into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

There is no declared way to inspect links forming cyclic nodes.
Main problem in all previous way to fix that: cyclicity broking all
sortings, there is no way to correct indexing nodes to easy find
cyclicity as incorrect order.
This pull request introduce new link flag NODE_LINK_IN_CYCLE.
This used to mark all links in cycles. To calcutate that, used
Tarjan's strongly connected components algorithm [1].
It have low complexity cost and going be used only in case if cyclicyti
was found by other topology algorithms.

The main benefit of this approach is that possible to display
all the links that make up the cycle:

Main Pull Request
image image
  1. https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
There is no declared way to inspect links forming cyclic nodes. Main problem in all previous way to fix that: cyclicity broking all sortings, there is no way to correct indexing nodes to easy find cyclicity as incorrect order. This pull request introduce new link flag `NODE_LINK_IN_CYCLE`. This used to mark all links in cycles. To calcutate that, used Tarjan's strongly connected components algorithm [1]. It have low complexity cost and going be used only in case if cyclicyti was found by other topology algorithms. The main benefit of this approach is that possible to display all the links that make up the cycle: | Main | Pull Request | | -- | -- | | ![image](/attachments/fd6b7bb5-1552-4da6-a87e-ac90a6937785) | ![image](/attachments/50992da8-bcc1-486d-a07c-88b0bdf02ff3) | 1. https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
Iliya Katushenock added the
Interest
User Interface
label 2023-05-06 13:17:39 +02:00
Iliya Katushenock added 3 commits 2023-05-06 13:17:48 +02:00
Iliya Katushenock added this to the Nodes & Physics project 2023-05-06 13:17:53 +02:00
Iliya Katushenock requested review from Hans Goudey 2023-05-06 13:31:46 +02:00
Iliya Katushenock added 1 commit 2023-05-06 13:44:50 +02:00
Iliya Katushenock added 2 commits 2023-05-06 18:45:09 +02:00
Iliya Katushenock added 1 commit 2023-05-07 01:12:23 +02:00
Iliya Katushenock changed title from Fix #107473: Correct way to indicate link in cycles to Correct way to indicate link in cycles 2023-05-10 23:07:43 +02:00
Iliya Katushenock changed title from Correct way to indicate link in cycles to Nodes: Display all links in cycle 2023-05-12 00:13:58 +02:00
Iliya Katushenock added 3 commits 2023-05-26 23:51:01 +02:00
Iliya Katushenock added 1 commit 2023-06-13 10:46:47 +02:00
Hans Goudey requested review from Jacques Lucke 2024-01-30 05:02:48 +01:00
Hans Goudey refused to review 2024-01-30 05:02:48 +01:00
This pull request has changes conflicting with the target branch.
  • source/blender/blenkernel/intern/node_runtime.cc
  • source/blender/blenkernel/intern/node_tree_update.cc
  • source/blender/makesdna/DNA_node_types.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u tmp_fix_link_validation:mod_moder-tmp_fix_link_validation
git checkout mod_moder-tmp_fix_link_validation
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107680
No description provided.