{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/784","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/784/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/784/events","html_url":"https://github.com/paperjs/paper.js/issues/784","id":106335935,"number":784,"title":"Boolean Intersections inside overlap ranges need special handling","user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.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},"labels":[{"url":"https://api.github.com/repos/paperjs/paper.js/labels/boolean","name":"boolean","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-09-14T13:04:15Z","updated_at":"2015-09-20T14:13:02Z","closed_at":null,"body":"That's why this special case is misbehaving: It has two intersections inside the overlap range, and currently deals with them wrongly:\r\n\r\n```js\r\nvar path1 = new Path({\r\n    pathData: \"M495.9,1693.5c-42.2-203.5-64.5-304.9-78-299.9 c-1.7,0.6-0.3,6.7,5.3,22.5l209.4-74.8l75.8,303.9L495.9,1693.5z\",\r\n    fillColor: 'red'\r\n});\r\nvar path2 = new Path({\r\n    pathData: \"M632.6,1341.2l-209.4,74.9c95.4,267,135.6,201-60.1-144.5l202.9-85.7 L632.6,1341.2z\",\r\n    fillColor: 'blue'\r\n});\r\n\r\nview.center = project.activeLayer.position;\r\n\r\nvar res = path1.unite(path2);\r\nres.fillColor = new Color(1, 1, 0, 0.5);\r\nres.fullySelected = true;\r\n```"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/141790309","html_url":"https://github.com/paperjs/paper.js/issues/784#issuecomment-141790309","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/784","id":141790309,"user":{"login":"iconexperience","id":2122773,"avatar_url":"https://avatars.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":"2015-09-20T14:13:02Z","updated_at":"2015-09-20T14:13:02Z","body":"@lehni Just noticed one case with an infinited recursion on `getIntersection()`. Should I try to reproduce and post it here?"}}