Curve to Curve Stroking

61 views
Skip to first unread message

Sonic Fiftynine

unread,
Apr 17, 2012, 3:39:42 PM4/17/12
to fog-dev
Saw your blog post from last year:
http://fog-framework.blogspot.ca/2011/08/quadratic-bezier-curves-stroker.html

Did the functionality mentioned in that article make it into svn?
Did you finish the cubic curve stroker as well?

Petr Kobalíček

unread,
Apr 23, 2012, 11:12:04 AM4/23/12
to fog...@googlegroups.com
Hi,

I think I didn't commit the stroker into SVN, because I had problems
with cubic to cubic stroking. Quadratics were quite good, although
there were some issues too. I have still the code somewhere so I can
look, but for me it's currently low priority task.

Are you interested about curve-to-curve stroking? I mean are you
planning to implement this thing?

Best regards
Petr Kobalicek

Sonic Fiftynine

unread,
Apr 29, 2012, 7:07:25 PM4/29/12
to fog-dev
Hi Petr,
Ah ok. I was wondering why I couldn't find it.

There is some talk on the Juce forum to develop a wavelet rasterizer
for Juce.
http://josiahmanson.com/research/wavelet_rasterization/

Since this method doesn't require flattening curves, I've been looking
into ways to do stroking while preserving curves. Your blog posting is
pretty much to only thing I could find about this topic on the net. I
was curious what state your code was in so we could possibly extend/
use it.
Were the problems/issues you ran into total show stoppers or do you
still think curve to curve stroking is achievable with the right
amount of time?

Thanks

On Apr 23, 10:12 am, Petr Kobalíček <kobalicek.p...@gmail.com> wrote:
> Hi,
>
> I think I didn't commit the stroker into SVN, because I had problems
> with cubic to cubic stroking. Quadratics were quite good, although
> there were some issues too. I have still the code somewhere so I can
> look, but for me it's currently low priority task.
>
> Are you interested about curve-to-curve stroking? I mean are you
> planning to implement this thing?
>
> Best regards
> Petr Kobalicek
>
>
>
>
>
>
>
> On Tue, Apr 17, 2012 at 9:39 PM, Sonic Fiftynine <supermari...@gmail.com> wrote:
> > Saw your blog post from last year:
> >http://fog-framework.blogspot.ca/2011/08/quadratic-bezier-curves-stro...

Petr Kobalíček

unread,
Apr 30, 2012, 12:56:05 PM4/30/12
to fog...@googlegroups.com
Hi,

I found the code I developed for quadratic curves, I have no problem
sending it to you. I'm sure that it won't work with the current Fog,
but it can be easily rewritten to use any framework.

Curve to curve stroking is also implemented in cairo, but they used
different algorithm (it's approximated using circles - bisection or
something like that). My algorithm was based on
http://processingjs.nihongoresources.com/bezierinfo/ , but I did some
modifications, because some pathologic cases were wrongly
approximated.

I'm able to collaborate on this, because curve-to-curve stroking is
long term todo I'd like to finish. If you have some time to invest on
this it would be cool:)

Best regards
Petr Kobalicek
Reply all
Reply to author
Forward
0 new messages