JDaniel
JDaniel

Reputation: 179

Intersection of two Path in fabric.js

Right now, I am working with bezier curves in fabric.js. Assuming, for instance, 3 of them, with intersections between them. I need to find the exactly crossing point and, even more difficult, draw the selection in other canvas. For fabric.path, I'm using

   perPixelTargetFind: true,

Image to clarify the situation:

Crossing bezier curves

Upvotes: 1

Views: 1750

Answers (1)

JDaniel
JDaniel

Reputation: 179

Finally, after a long time, I can't find any solution in fabric library, a workaround pass for convert to svg, use a another library or program your own proccess (pretty hard) and convert back to fabric. The final solution is use paper.js, it has some functions to detect intersections and colissions, and, also, is very powerful for some other task.

Upvotes: 3

Related Questions