Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to limit the number of link's segments (Read 2016 times)
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
how to limit the number of link's segments
Feb 8th, 2013 at 5:01pm
Print Post  
The programmer's Guide says:
The number of link's segments is specified by the setControlPoints method. Should I just remove some of the getControlPoints()? But I assume that after rerouting
the link there will be more controlPoints again ?
Is there an overall-setting for the number of segments?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to limit the number of link's segments
Reply #1 - Feb 12th, 2013 at 7:49am
Print Post  
I suppose you could disable automatic routing, and call the route method of links in response to events such as nodeCreated/Modified and linkCreated. Then if you decide there are too many points, remove some of them, but you will probably get the links to cross some nodes in that case.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint