Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Assigning calculated control points to link, may result in to link crossing shape with obstacle true (Read 2787 times)
Chetna Tumme
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Nov 28th, 2012
Assigning calculated control points to link, may result in to link crossing shape with obstacle true
Feb 15th, 2013 at 6:10am
Print Post  
Hi Stoyan,

I am assigning control points to link which are calculated by me in code.

So sometimes such link with calculated control points(not provided by mind fusion) croses a shape with obstacle property set to true.

But I want like follows:
Even if I am assigning calculated control points, the link should not cross the shape with obstacle property set to true.

That mean the libk with calculated control points should dynamically calculate its path if any shape is in its path.
Else if no shape is in its path then take the calculated control poits.

Is this possible?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Assigning calculated control points to link, may result in to link crossing shape with obstacle true
Reply #1 - Feb 15th, 2013 at 10:02am
Print Post  
Hi,

After assigning points, loop over diagram.Nodes and check if link.Intersects(node) returns true. Call link.Route() if it does.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint