mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Changed the URL on the header
This commit is contained in:
parent
cfe1bc0329
commit
9f844eb69a
2 changed files with 6 additions and 9 deletions
13
Boolean.js
13
Boolean.js
|
@ -27,7 +27,7 @@
|
|||
*
|
||||
* ------
|
||||
* Harikrishnan Gopalakrishnan
|
||||
* http://hkrish.com/playground/paperbool.html
|
||||
* http://hkrish.com/playground/paperjs/booleanStudy.html
|
||||
*
|
||||
* ------
|
||||
* Paperjs
|
||||
|
@ -417,16 +417,13 @@ function computeBoolean( _path1, _path2, operator ){
|
|||
* Mark each Link(Curve) according to whether it is
|
||||
* case 1. inside Path1 ( and only Path1 )
|
||||
* 2. inside Path2 ( and only Path2 )
|
||||
* 3. inside both ( fully contained holes that completely overlap )
|
||||
* 4. outside (normal case)
|
||||
* 3. outside (normal case)
|
||||
*
|
||||
* Take a test function "operator" which will discard links
|
||||
* according to the above
|
||||
* * Union -> discard cases 1, 2 and 3
|
||||
* * Intersection -> discard case 4
|
||||
* * Path1-Path2 -> discard cases 2, 3[Path1] and 4[Path2]‡
|
||||
* * Path2-Path1 -> discard cases 1, 3[Path2] and 4[Path1]
|
||||
* ‡ - 4[Path2] means curves of case 4 that belongs to Path2
|
||||
* * Union -> discard cases 1 and 2
|
||||
* * Intersection -> discard case 3
|
||||
* * Path1-Path2 -> discard cases 2, 3[Path2]
|
||||
*/
|
||||
|
||||
// step 1: discard invalid links according to the boolean operator
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Boolean Study</title>
|
||||
<script type="text/javascript" src="paper.js"></script>
|
||||
<script type="text/javascript" src="../dist/paper.js"></script>
|
||||
<script type="text/javascript" src="Boolean.js"></script>
|
||||
<script type="text/javascript" src="booleanTests.js"></script>
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue