ITADN

Port ordering issue with corner and split-side paths crossing

#1159Closedjacomyal 创建于 2026-06-23
bug:minor
J
jacomyalcommented
### What is the input mode? Mouse ### What type of issue is it? Functionality ### What happened? This ticket is an extract of a specific bug case found during the review of #1144, bug that looks like the one from #1140. This feedback is clearly a bug: the crossings below are trivially avoidable. It also is different from the one in #1140, since it occurs both with and without the fix from #1144. On a single node (NA/BV in the attached reticular), the "Crossing aware" mode leaves two crossings that should not exist: <img width="909" height="670" alt="Image" src="https://github.com/user-attachments/assets/473df56d-4000-4949-a8d5-e80350ac0faa" /> 1. **Two parallel paths** (both grey) entering from the left (LZA/00) and leaving at the bottom (PLN/BV) cross each other in the bottom-left corner. They share both endpoints, so they are absolutely parallel and should never cross. _This bug occurs both before and after the fix at #1144._ 2. **Two pass-through** cross near the middle of the node: one path (purple, dashed) goes left-to-right toward the lower-right neighbor (MHV/BV), and another one (grey, dashed) goes to the upper-right neighbor (MPL/BV). They could be very simply reordered within the node to not cross, and that's what the current algorithm aims to do. _This bug only appears after #1144, which explains the different between this screenshot and the one from @louisgreiner in his review on #1144._ The reticular is available [here](https://github.com/user-attachments/files/29139151/reticulaire.json). ### What did you expect to happen? There should be no crossing at all within the NA/BV node. ### How can we reproduce it (as minimally and precisely as possible)? 1. Load [reticular.json](https://github.com/user-attachments/files/29139151/reticulaire.json) 2. Toggle the "Crossing aware" mode 3. Look at the NA/BV node ### On which environments the bug occurs? Local ### On which browser the bug occurs? Firefox ### Netzgrafik-Editor version (top left corner `Version x.yy.zz`) 2.11.1
关闭于 2026-06-30 0 条评论