{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/6927","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/6927/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/6927/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/6927/events","html_url":"https://github.com/mrdoob/three.js/issues/6927","id":98190443,"number":6927,"title":"I found a bug review my solution it","user":{"login":"ZifRoot","id":5780526,"avatar_url":"https://avatars.githubusercontent.com/u/5780526?v=3","gravatar_id":"","url":"https://api.github.com/users/ZifRoot","html_url":"https://github.com/ZifRoot","followers_url":"https://api.github.com/users/ZifRoot/followers","following_url":"https://api.github.com/users/ZifRoot/following{/other_user}","gists_url":"https://api.github.com/users/ZifRoot/gists{/gist_id}","starred_url":"https://api.github.com/users/ZifRoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZifRoot/subscriptions","organizations_url":"https://api.github.com/users/ZifRoot/orgs","repos_url":"https://api.github.com/users/ZifRoot/repos","events_url":"https://api.github.com/users/ZifRoot/events{/privacy}","received_events_url":"https://api.github.com/users/ZifRoot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T14:57:28Z","updated_at":"2015-07-30T14:57:28Z","closed_at":null,"body":"when added into the vertices PointCloud new vertices,\r\nadding occurs,\r\nbecause: in function setParticleBuffers\r\nWhen copying in vertexArray of vertices, \r\nnot all vertices are copied,\r\nbecause:\r\nvertexArray declared as Float32Array and Float32Array does not resize \r\nso I suggest:\r\nin function setParticleBuffers when length of vertices not equal number of vertices in PointCloud\r\nre-create all the necessary Float32Array\r\n, and to make such changes\r\n\r\nfunction setParticleBuffers(geometry, hint, object) {\r\n+\tif (geometry.__webglParticleCount !== geometry.vertices.length) \r\n+\t\tinitParticleBuffers(geometry, object);\r\n\t\tvar v, c, vertex, offset, color,"}}