Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Issue with routing of link to a rotated node with high width to height ratio. (Read 8258 times)
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Issue with routing of link to a rotated node with high width to height ratio.
Oct 27th, 2017 at 8:28am
Print Post  
Hello

Refer the attached image. There are two types of nodes used.
One is a black bar and it has one anchor point at the center. Second one is with two circles with one anchor point.

Bar on the right side is rotated 90 degrees and in this case when a link is drawn (number 3) to a point below the center of the bar it takes a long route. I'm expecting a link routed along the red line as it has drawn in the link number 2.

This is observed only when the bar is rotated 90 or 270 degrees and the destination point of the link is below the center of the bar.

What could be the reason?



Thank you
beetee





  

2017-10-27_08-59-15.png ( 23 KB | 126 Downloads )
2017-10-27_08-59-15.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #1 - Oct 27th, 2017 at 10:59am
Print Post  
Hi,

What Router class and RoutingOptions values are you using?

Regards,
Slavcho
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #2 - Oct 27th, 2017 at 12:36pm
Print Post  
We are using DiagramNodeAdapter. It depends also on the source anchor point it seems.
Following are the Diagram settings

LinkRouter = new GridRouter();
RoutingOptions.Anchoring = Anchoring.Keep;
HitTestPriority = HitTestPriority.ZOrder;
BackBrush = Brushes.Transparent;
SnapToAnchor = SnapToAnchor.OnCreateOrModify;
ShowAnchors = ShowAnchors.Auto;
RouteLinks = true;
AllowSelfLoops = false;
Behavior = Behavior.DrawLinks;
AllowSplitLinks = false;
AlignToGrid = true;
LinkShape = LinkShape.Cascading;
AutoSnapLinks = true;
AutoSnapDistance = 10;
LinkHitDistance = 3;
MergeThreshold = 5;
DelKeyAction = DelKeyAction.None;
MinimumNodeSize = new Size(2, 2);
ShowDisabledHandles = false;
AllowUnanchoredLinks = false;
Selection.AllowMultipleSelection = true;
Selection.IncludeItemsIfIntersect = false;
ModificationStart = ModificationStart.SelectedOnly;
SelectionOnTop = false;
AutoResize = AutoResize.None;

and routing options

  

2017-10-27_14-27-40.png ( 27 KB | 121 Downloads )
2017-10-27_14-27-40.png
2017-10-27_12-54-53.png ( 50 KB | 122 Downloads )
2017-10-27_12-54-53.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #3 - Oct 27th, 2017 at 1:50pm
Print Post  
Our developer will check it. Are you on latest 3.5.2 version?
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #4 - Oct 27th, 2017 at 2:20pm
Print Post  
Hello Slavcho,

I have tried with 3.5.2 and its the same behavior.

Regards,
Beetee
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #5 - Oct 30th, 2017 at 8:36am
Print Post  
Hello Beetee,

We've tried to reproduce with your code here but it seems to work fine -
https://mindfusion.eu/_samples/ThinNodeRouteTest.zip

Please let me know what else we should change to see the problem happen.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #6 - Oct 31st, 2017 at 2:48pm
Print Post  
Hello Slavcho,

Please find the attached code to reproduce the issue.
Screenshot from the same code is also attached.

Thank you very much for the quick response.

Regards
Beetee
  

RoutingIssue.zip ( 15 KB | 246 Downloads )
2017-10-27_14-27-40_001.png ( 38 KB | 125 Downloads )
2017-10-27_14-27-40_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #7 - Nov 1st, 2017 at 9:33am
Print Post  
Hi Beetee,

Right, the grid router is not handling correctly rotated DiagramNodeAdapters. Our developer is working on a fix.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #8 - Nov 1st, 2017 at 9:50am
Print Post  
Please try this build -
https://mindfusion.eu/_temp/rotated_adapter.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #9 - Nov 1st, 2017 at 10:44am
Print Post  
It works now.
Thank you very much.
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #10 - Nov 2nd, 2017 at 8:30am
Print Post  
When can we expect an official release with this fix?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #11 - Nov 2nd, 2017 at 8:48am
Print Post  
Not in next couple of months. The assemblies above should be stable enough, we could upload them as a patched package on nuget if you don't want to deal with assembly files directly.
« Last Edit: Nov 2nd, 2017 at 9:51am by Slavcho »  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #12 - Nov 2nd, 2017 at 10:50am
Print Post  
Hello Slavcho,

I see one more issue here.

When I move the node on the right towards the vertical bar node routing is bit different. This depends on the distance between the nodes it seems. Beyond a certain distance this does not happen.

Please find the attached images before and after moving the node.

Regards,
Beetee
  

Before.png ( 7 KB | 124 Downloads )
Before.png
After.png ( 12 KB | 125 Downloads )
After.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #13 - Nov 3rd, 2017 at 6:58am
Print Post  
Hi Beetee,

This build should fix it -
https://mindfusion.eu/_temp/rotated_adapter.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
beetee
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Location: Switzerland
Joined: Jul 13th, 2017
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #14 - Nov 3rd, 2017 at 8:58am
Print Post  
It works. Smiley
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint