Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to Set Spline link point position? (Read 2115 times)
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
how to Set Spline link point position?
May 2nd, 2017 at 1:16am
Print Post  
how to set spline or bezier link midpoint position?
  

point.png ( 18 KB | 132 Downloads )
point.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: how to Set Spline link point position?
Reply #1 - May 2nd, 2017 at 5:35am
Print Post  
Set the respective element in link.ControlPoints collection, and then call UpdateFromPoints to recalculate some cached values. For single-segment Bezier links there are two intermediate tangent control points at positions 1 and 2. For Spline links you must set larger SegmentCount to get intermediate points, or simply insert new PointF instances into the ControlPoints list.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: how to Set Spline link point position?
Reply #2 - May 4th, 2017 at 5:47am
Print Post  
thx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint