{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/899","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/899/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/899/events","html_url":"https://github.com/paperjs/paper.js/issues/899","id":125823859,"number":899,"title":"path.unite() fails to resolve intersections","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},"labels":[{"url":"https://api.github.com/repos/paperjs/paper.js/labels/cat:%20boolean-operations","name":"cat: boolean-operations","color":"c7def8"},{"url":"https://api.github.com/repos/paperjs/paper.js/labels/cat:%20curve-intersection","name":"cat: curve-intersection","color":"c7def8"},{"url":"https://api.github.com/repos/paperjs/paper.js/labels/type:%20bug","name":"type: bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2016-01-10T14:48:51Z","updated_at":"2016-01-12T09:07:34Z","closed_at":null,"body":"In this example calling `unite()` on a path fails to resolve the self intersections of the path. The result is a path that still has self intersections.\r\n\r\n<a href=\"http://sketch.paperjs.org/#S/bVNNb9swDP0rhk8dkAjihyQyw067DwN2THrIUqEtmtqF7W6Hov99Tw2KZc0AA7alR77HR/KlH/aPtd/0Px7qcrjrV/1hvGn/v/ZT97Rf7rov3VB/d9/xefUy19vHOizzZrsV9SBUSD1xYss5rToqOXghZ3U3JYu86jjEnItLKso5CRlwa4rBUswUWcS9SAEw4rledVuJFlgQrazEMWpZdeIapOFSVIoqLCc8UsUglgArnKVkZ9Y3TrFMhRFT1LOWlpiLhBzZ1FkYKguSKKVQSMwSxOQSadV5INdsgngtxAppFEAtSVJMuSQHy5lcjSE7QjU55BkyUGJYQ0nMzTU29FpDjJmFgCyJi6OoNeRkKwYuY3gTHdITkmlELdFdSjFpR0wKP6CHOEPsidZDYUIlcIOdRJv9zdZMZhbJirR8zZ9MmsVhtAOYYzvNIRM4G1BwSYZqAhFFS6bqZh5bQ5uRHD0TGoGC4PE793nrk162PlPLeNma9T+9SYCfzs5mBD2COx9HhNIbtUhoLign1A2HmtsSkrF5bhUC+r8Bo3RBg2HSS5pyObLAXYP7cBznerNZpuf6+unzbtoN7yvC2JH2Ds/D/VKvTpeHcZjHYw3H8fbqDRQOx/08f8O2nQCnw2XaD/NxjzAYBcv+3oV5mcaH+nU8jhMIdv3tVOuw68+CPyKmeoN77PDPqe4fnsZ7rGq/2V6//gE=\">\r\n\r\n```javascript\r\nvar path = new Path({segments:[[349.31714952528665, 176.97192499841802, 2.0667935742653185, -10.850610233997372, 0, 0], [308.23418424120047, 394.39737504104323, 0, 0, -0.3852007263769224, 2.0386172397749647], [273.60284923271973, 415.7138856106701, 9.194683617471242, 1.7373535056759692, 0, 0], [340.6967045975081, 152.3115389894092, -4.006231967752797, -3.6687868382265094, 5.694026309937783, 5.214418174126138], [349.72123243229134, 170.85618880187394, -0.36146393999291604, -6.612268801346318, 0.1110858449889065, 2.0320961120115726], [349.31714952528654, 176.97192499841861, 0.3852007263769224, -2.038617239775249, -2.0667935742656027, 10.850610233997315], [333.4126425432937, 153.58289639999975, -10.850610233997315, -2.0667935742653754, 10.850610233997372, 2.0667935742653754]], closed:true});\r\nvar path2 = path.unite();\r\nconsole.log(path2.className);\r\npath2.translate(200, 0);\r\npath.strokeColor = \"green\";\r\npath2.strokeColor = \"red\";\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2122773/12222081/8394f8b2-b7b1-11e5-8753-64aefbbce7b2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/170845527","html_url":"https://github.com/paperjs/paper.js/issues/899#issuecomment-170845527","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/899","id":170845527,"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":"2016-01-12T09:07:34Z","updated_at":"2016-01-12T09:07:34Z","body":"If you want, to, you are welcome. I am a bit stuck at the moment."}}