The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey
Find a file
2013-04-27 16:26:44 +02:00
.exrc Boolean Union and Intersection working 2013-04-18 20:27:19 +02:00
.gitignore Readme, Licence etc. 2013-04-22 16:18:44 +02:00
Boolean.js paperjs updated to rev#8d35d92. Removed getLineIntersections. Needs a better intersection algorithm 2013-04-27 16:26:44 +02:00
booleanStudy.html more tests 2013-04-22 11:55:44 +02:00
booleanTests.js Update to the latest paperjs api 74f6a93 2013-04-26 09:55:21 +02:00
COPYING Readme, Licence etc. 2013-04-22 16:18:44 +02:00
README.md Readme, Licence etc. 2013-04-22 16:18:44 +02:00

Vector boolean operations on paperjs objects. This is mostly written for clarity (I hope it is clear) and compatibility, not optimised for performance, and has to be tested heavily for stability.

(Looking up to Java's Area path boolean algorithms for stability, but the code is too complex —mainly because the operations are stored and enumerable, such as quadraticCurveTo, cubicCurveTo etc.; and is largely undocumented to directly adapt from)

Supported

  • paperjs Path and CompoundPath objects
  • Boolean Union
  • Boolean Intersection
  • Boolean Subtraction
  • Resolving a self-intersecting Path

Not supported yet ( which I would like to see supported )

  • Boolean operations between self-intersecting Paths
  • Paths are clones of each other that ovelap exactly on top of each other!

This is meant to be integrated into the paperjs library in the near future.


Harikrishnan Gopalakrishnan http://hkrish.com/playground/paperjs/booleanStudy.html


Paperjs Copyright (c) 2011, Juerg Lehni & Jonathan Puckey http://paperjs.org/license/