{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/869","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/869/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/869/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/869/events","html_url":"https://github.com/paperjs/paper.js/issues/869","id":123998835,"number":869,"title":"New #resolveCrossing() does not handle 'nonzero' fill-rule properly.","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-12-27T22:22:17Z","updated_at":"2015-12-27T23:18:25Z","closed_at":null,"body":"Example:\r\n\r\n```js\r\nvar data = \"M356.6,301.2L356.6,336Q356.6,343.2,353,351.4Q349.4,359.6,341.8,366.6Q334.2,373.6,322.2,378.2Q310.2,382.8,293.4,382.8Q285.8,382.8,278.4,381.2Q271,379.6,265.6,376Q260.2,372.4,256.8,366.6Q253.4,360.8,253.4,352.4Q253.4,339.6,259.2,332.2Q265,324.8,274.2,320.8Q283.4,316.8,295,315Q306.6,313.2,318,311.8Q329.4,310.4,339.8,308.2Q350.2,306,356.6,301.2Z M313,196.4Q295.8,196.4,280.2,200Q264.6,203.6,252.6,211.8Q240.6,220,233.4,233.2Q226.2,246.4,225.4,265.6L259.4,265.6Q260.6,242.8,275,234.6Q289.4,226.4,311,226.4Q319,226.4,327.2,227.6Q335.4,228.8,342,232.4Q348.6,236,352.8,242.8Q357,249.6,357,260.8Q357,270.4,351.4,275.4Q345.8,280.4,336.2,283Q326.6,285.6,314,287Q301.4,288.4,287.4,291.2Q274.2,293.6,261.6,297.2Q249,300.8,239.2,307.8Q229.4,314.8,223.4,326Q217.4,337.2,217.4,354.8Q217.4,370.4,222.8,381.4Q228.2,392.4,237.6,399.4Q247,406.4,259.4,409.4Q271.8,412.4,285.8,412.4Q307.4,412.4,326,405Q344.6,397.6,358.6,380.8Q358.6,397.6,366.4,405Q374.2,412.4,387.4,412.4Q403,412.4,411.8,407.2L411.8,380.8Q405.8,382.8,401.4,382.8Q393.4,382.8,392,377.2Q390.6,371.6,390.6,359.6L390.6,253.2Q390.6,235.2,383.8,224Q377,212.8,365.8,206.6Q354.6,200.4,340.8,198.4Q327,196.4,313,196.4Z\";\r\nvar path1 = new CompoundPath(data);\r\npath1.fillColor = 'red';\r\npath1.resolveCrossings();\r\n```\r\n\r\nResult:\r\n\r\n<img width=\"238\" alt=\"screen shot 2015-12-27 at 23 22 00\" src=\"https://cloud.githubusercontent.com/assets/213275/12012356/a9f5110c-acf0-11e5-9e0c-2a74049a3317.png\">"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/167447203","html_url":"https://github.com/paperjs/paper.js/issues/869#issuecomment-167447203","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/869","id":167447203,"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},"created_at":"2015-12-27T23:18:25Z","updated_at":"2015-12-27T23:18:25Z","body":"Sorry, I'm tired. I forgot to remove that line... Now here's the up-to-date version, with `counter = 1` and no changing of the original orientation. And it works: [Updated Sketch](http://sketch.paperjs.org/#S/tVZRjxo3EP4rE6Qmy8HtcSiVqqOkSu4pD42ipFKkAKqM17A+jL21vdD0xH/vjNfLLtzCU2uQdteeGc9883nGzz3NtqL30Pu6EZ7nvWGPm4y+727m+g/hPKyMhUezLUqdfWY+T60wVgrtgekMtNH/CGtgJZUCWyqRolYugBvNUcZKDpl03AHz4HFeiZWHnO0EMLBowGyhssa8NBqV31dyVq5zPwSGVsm0yKIZn6MhZgVI7WSGVrRBcdsWApebUmWwRCtia3YiQ7M3d3NNPwrE1JEU1njjfxSiiWkKq1Jz8iXpw/NcA44ds8BzqTIrNAr4XLr0z3piWMnQUEKvfY4S9VpazUwqEbmCJIq8g9HROo2W9aOuU5KLpJ86Y31SOwUJG8LyRJeGFb60GpbpWvgPFJ5DRXx/bwXDOG6Bda9MGjOH9gdFLL3YOnRoVns0Gy0Ww9N9xd9clRniPoXnw9madJ+M/k7ciJDhrt+kzqRef0GeoFvT6RTeRAK9OdPeV5LkQGPo9Wv4wJxIBeN5ckxAk7Ew9QIcGsGBonRRLZXuURm+2UtHjvwG9/AAt/dtCAImQ5gt2pN3d/CNqQ2as6Zc59DywSKTFbNrOjHegNsidfE9PVGmk7GS1iGza9lgAjjTxFe3kUUR+For0eFLQjoQifsJPn6NPMP3weBFsEeutqg0k+d5o1EYGfheAYLJ+ai9sNLYz7SQ9DtUOBIIZciTjlU8aVaxglK2YsqJDpHIl1riDO5jrE+UdWQtxvsE76YwwuftbWdi6VAd43xapFh3PMPakITw+p06td4JsV7V7l9UoVHTEiGFwbT5fFpMLith4r+EQhQzg3tTpURiH8snldJo7KodnjONtKnoVisj3cIT4QvzcfKqoVp3Kfxe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