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 8339 times)
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 #15 - Jun 25th, 2018 at 11:04am
Print Post  
Hello

Link is always routed in such a way that it approaches the destination from the top. My expectation is that it takes the shortest route and approach the destination from bottom. Screen shot of the behavior is attached. Also the source to reproduce this is attached here.
  

RoutingIssue_001.zip ( 264 KB | 136 Downloads )
2018-06-25_12-54-33.png ( 3 KB | 94 Downloads )
2018-06-25_12-54-33.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Issue with routing of link to a rotated node with high width to height ratio.
Reply #16 - Jun 27th, 2018 at 1:45pm
Print Post  
Hi,

With internal anchor points involved, the router just selects the side of the node that is closest to the anchor point and routes to it, which does not work that well if exactly in the middle. We'll try to improve that for next release. If you replace the Y=50% points with a pair of 49/51 ones it seems to select point and side as expected -

Code
Select All
var ap3 = new AnchorPattern(new[]
{
	new AnchorPoint(50, 49)
	{
		MarkStyle = MarkStyle.Custom,
		Tag = 0
	},
	new AnchorPoint(90, 49)
	{
		MarkStyle = MarkStyle.Custom,
		Tag = 1
	},
    new AnchorPoint(50, 51)
    {
        MarkStyle = MarkStyle.Custom,
        Tag = 0
    },
    new AnchorPoint(90, 51)
    {
        MarkStyle = MarkStyle.Custom,
        Tag = 1
    }
}, "ap3");

diag.RoutingOptions.Anchoring = Anchoring.Reassign;
 

  
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 #17 - Jun 28th, 2018 at 12:15pm
Print Post  
Hello Slavcho,

Thank you very much.

Regards,
Beetee
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint