{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/13653","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/13653/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/13653/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/13653/events","html_url":"https://github.com/mrdoob/three.js/issues/13653","id":307309174,"number":13653,"title":"Incorrect shape with holes, when one area eclosed by another","user":{"login":"strangerintheq","id":5839866,"avatar_url":"https://avatars1.githubusercontent.com/u/5839866?v=4","gravatar_id":"","url":"https://api.github.com/users/strangerintheq","html_url":"https://github.com/strangerintheq","followers_url":"https://api.github.com/users/strangerintheq/followers","following_url":"https://api.github.com/users/strangerintheq/following{/other_user}","gists_url":"https://api.github.com/users/strangerintheq/gists{/gist_id}","starred_url":"https://api.github.com/users/strangerintheq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strangerintheq/subscriptions","organizations_url":"https://api.github.com/users/strangerintheq/orgs","repos_url":"https://api.github.com/users/strangerintheq/repos","events_url":"https://api.github.com/users/strangerintheq/events{/privacy}","received_events_url":"https://api.github.com/users/strangerintheq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T16:00:22Z","updated_at":"2018-03-21T16:00:22Z","closed_at":null,"author_association":"NONE","body":"##### Description of the problem\r\n\r\nHi!\r\nProblem description:\r\nI have a svg path with holes and i want to extrude geometry from it, everything is fine except usecase where i have a isolated inner figure in source svg path\r\n\r\nhere is a [fiddle](https://jsfiddle.net/4h19hov1/22/) with example of problem\r\n \r\n[dev-branch fiddle](https://jsfiddle.net/4h19hov1/24/)\r\n\r\nat top of the scene: is the final result of extruding\r\n\r\nat bottom: separated subshapes, one hole related to another polygon\r\n\r\nedit: i dig into three.js code and figured out that is a bug of ShapePath.toShapes method.\r\nthe part of code with detection of correct hole target is bugged.  case when one area enclosed my another (countour hierarchy) is not handled properly\r\n\r\n##### Three.js version\r\n\r\n- [x ] Dev\r\n- [ x] r91\r\n- [ ] ...\r\n\r\n##### Browser\r\n\r\n- [x] All of them\r\n- [ ] Chrome\r\n- [ ] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] macOS\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] iOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n- any"}}
{"actor":{"display_login":"strangerintheq"}}