An algorithm to draw smooth curves I made

Flesh out your ideas for new or improved Inkscape features before submitting a request.
benpaulthurston
Posts: 5
Joined: Sun Jul 14, 2013 5:53 pm

An algorithm to draw smooth curves I made

Postby benpaulthurston » Sun Jul 14, 2013 5:58 pm

I thought of this algorithm to allow someone to draw a series of points and the computer would draw a smooth curve through them. It's different than bezier curves or polynomial interpolation and I think better than both. I explained it on my blog, I don't know if I'm going to try and publish a math paper on it or not but I think it's interesting. http://benpaulthurstonblog.blogspot.com/2013/07/constructing-smooth-curve-from-set-of.html

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: An algorithm to draw smooth curves I made

Postby Lazur » Tue Jul 16, 2013 1:44 am

Interesting method, but what's with the starting and end segments?
Is this algorithm about to draw a "random" curve, between two circle archs?

benpaulthurston
Posts: 5
Joined: Sun Jul 14, 2013 5:53 pm

Re: An algorithm to draw smooth curves I made

Postby benpaulthurston » Wed Jul 17, 2013 5:19 pm

No, I think I explained it better on the next page of the blog along with source code in python...
http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html

also could someone explain how the url thing is supposed to work I can only get it to preview right some of the time...

benpaulthurston
Posts: 5
Joined: Sun Jul 14, 2013 5:53 pm

Re: An algorithm to draw smooth curves I made

Postby benpaulthurston » Wed Jul 17, 2013 5:21 pm

You were right about the endpoints, the first and last affect the curve a little but can be put whereever.
http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: An algorithm to draw smooth curves I made

Postby Lazur » Wed Jul 17, 2013 8:37 pm

It seems you did get the url right.

Here are the ways you can use them:

Code: Select all

[url]http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html[/url]
Link to the page[url=http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html]here[/url].
[url=http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html][img]http://2.bp.blogspot.com/-fzApYEaEXms/UeY_PyAftrI/AAAAAAAABfI/oDaeBkEJO3A/s1600/drawsmooth.png[/img][/url]


Which all gets you to the right direction:
http://benpaulthurstonblog.blogspot.com/2013/07/smooth-curve-generator-implemented-in.html
Link to the pagehere.
Image

benpaulthurston
Posts: 5
Joined: Sun Jul 14, 2013 5:53 pm

Re: An algorithm to draw smooth curves I made

Postby benpaulthurston » Thu Jul 18, 2013 12:12 am

Oh, ok I guess I was thinking it didn't show the url in the preview so I thought I was doing it wrong... Someone also pointed out the red dots in my drawing don't quite match up that's because I was manually drawing the dots, but for example 520,20 is a point given in the program and it is on the curve appropriately not where the red dot for that point would lead you to believe.


Return to “Inkscape Ideas”