{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/1261","repository_url":"https://api.github.com/repos/paperjs/paper.js","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/1261/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/1261/events","html_url":"https://github.com/paperjs/paper.js/issues/1261","id":209558357,"number":1261,"title":"Unite operation results in empty path","user":{"login":"iconexperience","id":2122773,"avatar_url":"https://avatars2.githubusercontent.com/u/2122773?v=3","gravatar_id":"","url":"https://api.github.com/users/iconexperience","html_url":"https://github.com/iconexperience","followers_url":"https://api.github.com/users/iconexperience/followers","following_url":"https://api.github.com/users/iconexperience/following{/other_user}","gists_url":"https://api.github.com/users/iconexperience/gists{/gist_id}","starred_url":"https://api.github.com/users/iconexperience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconexperience/subscriptions","organizations_url":"https://api.github.com/users/iconexperience/orgs","repos_url":"https://api.github.com/users/iconexperience/repos","events_url":"https://api.github.com/users/iconexperience/events{/privacy}","received_events_url":"https://api.github.com/users/iconexperience/received_events","type":"User","site_admin":false},"labels":[{"id":259452317,"url":"https://api.github.com/repos/paperjs/paper.js/labels/cat:%20boolean-operations","name":"cat: boolean-operations","color":"c7def8","default":false},{"id":308791692,"url":"https://api.github.com/repos/paperjs/paper.js/labels/type:%20bug","name":"type: bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"lehni","id":213275,"avatar_url":"https://avatars0.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"assignees":[{"login":"lehni","id":213275,"avatar_url":"https://avatars0.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false}],"milestone":null,"comments":30,"created_at":"2017-02-22T19:39:04Z","updated_at":"2017-03-01T12:16:34Z","closed_at":null,"body":"Here is an example of a unite operation that results in an empty path:\r\n\r\n```\r\nvar p1 = paper.PathItem.create(\"M933.13,1023.97l-516.19,-171.71l607.1,-101.57z\");\r\nvar p2 = paper.PathItem.create(\"M933.13,1023.97l-516.19,-171.71l67.33,-11.27l337.49,112.27c16.7,-50.22 71.03,-77.36 121.34,-60.63l45.23,-135.96l35.71,-5.98z\");\r\nvar res = p1.unite(p3);\r\n```\r\n\r\n<a href=\"http://sketch.paperjs.org/#S/pVHBSsQwFPyVktMupI+8lybZrnjy5EEQPBoP2W7cLc22Ja0eFP/dl8WD4FESHpnMMMwkn2IMlyj24mmIa3cWUnTTseD3kKsZq9tqDnPM8BjW8/0aL9DlGNa48eKh1RpQS1SkoXWpNmgBW1mjQ3CYrHKAjBSCcR9ebG/8eDWl/5g60JoRArmktYOmlYjEqGOhk7VRQFSxWLHMsdpWSAi6kbVVYHVqDFBx0AZam3g6Dsnn3U/EGWFZ8zTEuylNmaN6kePRi0LRH+qUYxyvZKmW41K6IbyNPdeZqRjyJbz2Kf3yOx3ChoyR1XUo3kBbL/xYFn/BgZ9jmKd+XBexf375+gY=\">Here is the sketch</a>, but note that in the sketch everything works as expected.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2122773/23228978/e46c92f6-f93e-11e6-82e3-f40d43944b91.png)\r\n"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/283325168","html_url":"https://github.com/paperjs/paper.js/issues/1261#issuecomment-283325168","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/1261","id":283325168,"user":{"login":"iconexperience","id":2122773,"avatar_url":"https://avatars2.githubusercontent.com/u/2122773?v=3","gravatar_id":"","url":"https://api.github.com/users/iconexperience","html_url":"https://github.com/iconexperience","followers_url":"https://api.github.com/users/iconexperience/followers","following_url":"https://api.github.com/users/iconexperience/following{/other_user}","gists_url":"https://api.github.com/users/iconexperience/gists{/gist_id}","starred_url":"https://api.github.com/users/iconexperience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconexperience/subscriptions","organizations_url":"https://api.github.com/users/iconexperience/orgs","repos_url":"https://api.github.com/users/iconexperience/repos","events_url":"https://api.github.com/users/iconexperience/events{/privacy}","received_events_url":"https://api.github.com/users/iconexperience/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T12:16:34Z","updated_at":"2017-03-01T12:16:34Z","body":"Or maybe we should use \r\n\r\n```javascript\r\n    Curve.solveCubic(v, io, po, roots, 0, 1) > 0\r\n        ? roots[0]\r\n        : 0.5,\r\n```"}}
{"actor":{"display_login":"iconexperience"}}