Where can I find the source code for path operations?

Discussion about writing code for Inkscape.
AthanClark
Posts: 1
Joined: Sat Dec 08, 2012 7:11 pm

Where can I find the source code for path operations?

Postby AthanClark » Sat Dec 08, 2012 7:31 pm

I'm trying to help out a javascript based vector graphics project (paper.js) (and also use it in my project ;) ) by making a library or function that can do path operations like union, difference, intersection, etc. Does anyone know where the code for this is? Can anyone explain it? :S I've been doing a lot of research on cubic spline graphing, and finding the intersection of two of them seems like an impossible task (here's a wolfram alpha of the inverse of the cubic spline rendering algorithm: original, inverse
I thought of a bunch of ways to find intersections, like gradually upping the input's precision and finding the closest points until a match is found, but honestly you guys know it best.
Can anyone help me? Sorry for the trouble, I really want to share inkscape's glory! Thank you!

EDIT: Just fixed some links.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Where can I find the source code for path operations?

Postby brynn » Mon Dec 10, 2012 12:05 am

Image
Welcome to InkscapeForum!

I really have no business trying to answer any question in this subforum :roll: But my guess would be that you'll find it in the Inkscape source code. Somewhere I've see a link to the source code, but now I can't seem to find it. But you should be able to find somewhere at inkscape.org. Although don't take my comments as any informed info. This is just a guess, since no one else has answered yet.


Return to “Programming”