Page 3 of 3

Re: Smooth strokes

Posted: Tue Jun 24, 2014 11:48 pm
by Mag
Hi [-hh], thank you for the explanation. Actually I had understand this, unfortunately I explained it bad in my post, sorry.

Code: Select all

If you now target on cutting a one-segment drawing into parts then you have for example to decide when a snake is a badly written "5" or a "S".
I think that automatic cutting a one-segment drawing into parts would be a great step forward for this project.

Maybe a way could be to try to identify the change of directions of a polygon. I market some of them in the picture. Do you think that would be possible to accomplish this? I tried to accomplish it but found that it's a goal too much hard.

Re: Smooth strokes

Posted: Wed Jun 25, 2014 7:45 am
by [-hh]
..........

Re: Smooth strokes

Posted: Wed Jun 25, 2014 6:59 pm
by [-hh]
..........

Re: Smooth strokes

Posted: Wed Jun 25, 2014 9:05 pm
by Mag
Hi [-hh],

I can't understand the logic with which the cuts are made. In this image there is the splits made ​​by smoothDraw2, and in the below row as it should be splitted (only curves and lines). Maybe I have the wrong settings? :oops:

Re: Smooth strokes

Posted: Thu Jun 26, 2014 11:49 am
by [-hh]
..........

Re: Smooth strokes

Posted: Fri Jun 27, 2014 12:18 pm
by Mag
Hi, I found your latest version a lot improved. Great work!

I think the weak point is still the recognition of the various curves. Maybe this would be enough to simply implement a system that detects when a segment changes direction. Like the system that I implemented in my first version: if a point with respect to the two previous points continues its trend (eg. up,up or down,up) then the direction is the same.

Reducing shivering it's a very important feature, well done. I have some difficulties to understand how you implemented it. Too much math for me :oops:

Re: Smooth strokes

Posted: Fri Jun 27, 2014 4:15 pm
by Mag
For those interested in the subject, I opened a topic on freehand's draw quality here: http://forums.livecode.com/viewtopic.php?f=8&t=20894