Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Crossing Bezier arrows (Read 10967 times)
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Crossing Bezier arrows
Mar 2nd, 2006 at 1:14pm
Print Post  
Hello,

I don't think that's a bug, so I'll post here instead.

It seems FlowChart.NET does not consider crossing Bezier arrows within its features. It does not support drawing arcs, or does not take into account the crossing cost in routing options (the latter being my main concern), while it works fine with Polyline and Cascading arrows.

Is this something unsupported by the component? Are there plans to add support for it?

I realize this might be a complex topic to handle, so I would also have a suggestion parallel to that. Most of the time (if not always) I don't need the complexity of Bezier curves for arrows within my software development. I mostly use them to have rounded corners.

So I think adding a fourth arrow style "RoundedCascading" to have rounded corners instead of straight ones might be nice, much like Rectangle vs. RoundedRectangle for box shapes. It might be easier to handle crossing arrows that way, while having an interesting visual appearance.

Thanks!
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #1 - Mar 2nd, 2006 at 2:00pm
Print Post  
Hi,

According to our developers, crossing points are not calculated for Bezier arrows because that would be very slow. Each Bezier segment would have to be approximated with a series of short straight segments to determine where the crossing points are. Or otherwise the exact crossing point of Beziers can be found only by solving an Integral equation... Anyway we can add a boolean property that will let you use crossing points for Beziers.

It will be easy to add rounder corners to Polyline and Cascading arrows, that could be a boolean property too. Right now the guys are busy  working on several import/export components; they could implement the rounded corners at some time next week.

Stoyan
  
Back to top
 
IP Logged
 
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Re: Crossing Bezier arrows
Reply #2 - Mar 2nd, 2006 at 2:12pm
Print Post  
Indeed, Bezier curves can get quite expensive to calculate when there's many of them. That's why I think having a rounded corners option on arrows would be nice and inexpensive.

I just noticed there's no intermediate arrows on Bezier either as well, probably for the same reason you mentioned.

So yeah, rounded arrows would be a nice feature, I would use them instead of Beziers Smiley

Thanks!
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #3 - Mar 7th, 2006 at 2:44pm
Print Post  
Hi,

Take a look at this version of the control:

https://mindfusion.org/_temp/FlowChart.NET.zip

It adds RoundArrows and RoundArrowRadius properties to the FlowChart class that let you control the 'roundness' of cascading and polyline arrows. We'll probably change the property names in the official release.

Stoyan
« Last Edit: Mar 7th, 2006 at 5:36pm by Stoyo »  
Back to top
 
IP Logged
 
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Re: Crossing Bezier arrows
Reply #4 - Mar 7th, 2006 at 7:22pm
Print Post  
This is looking good!

However, it seems rounded arrows revert to square corners mode when ArrowCrossings are set to something else than None. Is this normal?

Thanks!
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #5 - Mar 8th, 2006 at 10:03am
Print Post  
Hi,

RoundedArrows and Crossings do not work together yet. The developer says he will implement that later today.

Stoyan
« Last Edit: Mar 8th, 2006 at 2:52pm by Stoyo »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #6 - Mar 8th, 2006 at 12:29pm
Print Post  
  
Back to top
 
IP Logged
 
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Re: Crossing Bezier arrows
Reply #7 - Mar 8th, 2006 at 12:40pm
Print Post  
Very good, it works like a charm!

I must say I'm quite impressed by the support you're offering so far, you don't see that too often elsewhere. Keep up the good work! Smiley

Thanks!
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #8 - Mar 8th, 2006 at 2:53pm
Print Post  
thank you too  Smiley
  
Back to top
 
IP Logged
 
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Re: Crossing Bezier arrows
Reply #9 - Mar 8th, 2006 at 4:48pm
Print Post  
I encountered a small bug with this new feature.

Steps:

1) Drop a FlowChart.NET component in a form.
2) Set RoundArrows to true.
3) Set ArrowCrossings to Arc.
4) Set ArrowStyle to Cascading.

Run the application, draw two boxes having the same height, draw a straight arrow from one to the other. The arrow line disappears.

I noticed it happening in some other cases, but it's the easiest one to reproduce.

Hope it helps! Smiley
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #10 - Mar 8th, 2006 at 7:13pm
Print Post  
You are right, that seems to happen with ArrowSegments = 2. The developer will look into it tomorrow.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #11 - Mar 9th, 2006 at 2:47pm
Print Post  
Hi,

This version should work better:

https://mindfusion.org/_temp/fcnet.zip

Stoyan
  
Back to top
 
IP Logged
 
JGG
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Feb 27th, 2006
Re: Crossing Bezier arrows
Reply #12 - Mar 13th, 2006 at 5:02pm
Print Post  
Working pretty fine so far, thanks!

I have another minor issue to report (sorry if I seem a little picky Wink), there are visual artifacts on the corners when the arrow pen is larger than normal (say 1mm and more). It seems the arc does not complete its 90 degrees curve.

Thanks again!
JGG
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crossing Bezier arrows
Reply #13 - Mar 14th, 2006 at 10:38am
Print Post  
Try this version

https://mindfusion.org/_temp/FlowChart.NET.zip

It creates outline paths around arrows and fills them if the pen width is larger than 1/3 millimeters, so there shouldn't be any pixel skipped from filling now Wink

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint