├── .gitignore ├── docs └── index.html ├── .jshintrc ├── package.json ├── Gruntfile.js ├── LICENSE ├── test └── index.js ├── README.md ├── index.html ├── src └── index.js └── dat.gui.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node" : true, 3 | "browser" : true, 4 | 5 | "boss" : false, 6 | "curly": true, 7 | "debug": false, 8 | "devel": false, 9 | "eqeqeq": true, 10 | "eqnull": true, 11 | "evil": false, 12 | "forin": false, 13 | "immed": true, 14 | "laxbreak": false, 15 | "newcap": true, 16 | "noarg": true, 17 | "noempty": true, 18 | "nonew": true, 19 | "plusplus": false, 20 | "regexp": false, 21 | "smarttabs": true, 22 | "sub": true, 23 | "strict": false, 24 | "trailing" : true, 25 | "undef": true, 26 | "unused": true, 27 | "indent": 4, 28 | "shadow" : true, 29 | "laxcomma": true 30 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "poly-decomp", 3 | "version": "0.3.0", 4 | "description": "Convex decomposition for 2D polygons", 5 | "author": "Stefan HedmanDecomposition of 2D polygons into convex pieces in JavaScript. See the Github repo.
47 |Try drawing a polygon below!
48 |GUI\'s constructor:\n\n \n\n localStorage on exit.\n\n localStorage will\n override those passed to dat.GUI\'s constructor. This makes it\n easier to work incrementally, but localStorage is fragile,\n and your friends may not see the same values you do.\n \n