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-05-01 23:32:25 +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 Tests fo paperjs integrated version 2013-04-30 17:51:39 +02:00
Boolean2.js Remove the proxy paths used for boolean 2013-05-01 23:32:25 +02:00
booleanStudy.html Add tests for Exclusion and Division 2013-05-01 22:55:50 +02:00
booleanTests.js Add tests for Exclusion and Division 2013-05-01 22:55:50 +02:00
booleanTests_paper.js Tests fo paperjs integrated version 2013-04-30 17:51:39 +02:00
COPYING Readme, Licence etc. 2013-04-22 16:18:44 +02:00
mpatch.js Boolean v2 testing 2013-05-01 02:29:18 +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/