{"action":"closed","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/9750","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/9750/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/9750/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/9750/events","html_url":"https://github.com/mrdoob/three.js/issues/9750","id":178801739,"number":9750,"title":"r80....... creating a circle  three.js:15191 Uncaught TypeError: Cannot read property 'length' of undefined.","user":{"login":"gvsharma","id":6648152,"avatar_url":"https://avatars.githubusercontent.com/u/6648152?v=3","gravatar_id":"","url":"https://api.github.com/users/gvsharma","html_url":"https://github.com/gvsharma","followers_url":"https://api.github.com/users/gvsharma/followers","following_url":"https://api.github.com/users/gvsharma/following{/other_user}","gists_url":"https://api.github.com/users/gvsharma/gists{/gist_id}","starred_url":"https://api.github.com/users/gvsharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvsharma/subscriptions","organizations_url":"https://api.github.com/users/gvsharma/orgs","repos_url":"https://api.github.com/users/gvsharma/repos","events_url":"https://api.github.com/users/gvsharma/events{/privacy}","received_events_url":"https://api.github.com/users/gvsharma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Help%20(please%20use%20Stackoverflow)","name":"Help (please use Stackoverflow)","color":"cfcfcf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T07:11:46Z","updated_at":"2016-09-23T21:33:48Z","closed_at":"2016-09-23T21:33:48Z","body":"##### Description of the problem \r\n\r\n(This is NOT a help site. Please read the guidelines above before posting.)\r\n\r\n\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [x] r80\r\n- [ ] ...\r\n\r\n##### Browser\r\n\r\n- [ ] All of them\r\n- [x] Chrome\r\n- [x] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [x] All of them\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\nfunction createMyCircle() {\r\n    var geometry = new THREE.Geometry();\r\n    var radius = 100;\r\n    var segments = 10;\r\n\r\n    for (var i = 1; i <= segments; i++) {\r\n        var angle = (360 / segments) * i * (Math.PI / 180);\r\n        var x = radius * Math.cos(angle);\r\n        var y = radius * Math.sin(angle);\r\n        geometry.vertices.push(new THREE.Vector3(x, y, 0));\r\n        geometry.faces.push(0, i, i + 1);\r\n        geometry.faceVertexUvs[0].push([\r\n            new THREE.Vector2(0, 0),\r\n            new THREE.Vector2(i, i),\r\n            new THREE.Vector2(i + 1, i + 1)\r\n        ]);\r\n    }\r\n    return geometry;\r\n}\r\n\r\nvar material = new THREE.MeshBasicMaterial({color: 0xFF0000, side: THREE.FrontSide});\r\n        var geometry = createMyCircle();\r\n        var circle = new THREE.Mesh(geometry, material);\r\n        circle.position.set(windowWidth / 2, windowHeight / 2, 0);\r\n        scene.add(circle);\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"mrdoob"}}