{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/8620","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/8620/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/8620/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/8620/events","html_url":"https://github.com/mrdoob/three.js/issues/8620","id":147884138,"number":8620,"title":"Box3 with NaN's is not empty()","user":{"login":"nk327","id":1126092,"avatar_url":"https://avatars.githubusercontent.com/u/1126092?v=3","gravatar_id":"","url":"https://api.github.com/users/nk327","html_url":"https://github.com/nk327","followers_url":"https://api.github.com/users/nk327/followers","following_url":"https://api.github.com/users/nk327/following{/other_user}","gists_url":"https://api.github.com/users/nk327/gists{/gist_id}","starred_url":"https://api.github.com/users/nk327/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nk327/subscriptions","organizations_url":"https://api.github.com/users/nk327/orgs","repos_url":"https://api.github.com/users/nk327/repos","events_url":"https://api.github.com/users/nk327/events{/privacy}","received_events_url":"https://api.github.com/users/nk327/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T21:48:13Z","updated_at":"2016-04-12T22:28:12Z","closed_at":null,"body":"##### Description of the problem \r\n\r\nIf all of the coordinates in `Box3` are set to `NaN`, then `empty()` returns false. This is troublesome for cases where we use `applyMatrix4()` transformations to empty boxes and expect them to remain empty.\r\n\r\n##### Three.js version\r\n\r\n- [ ] Dev\r\n- [x] r75\r\n- [x] r73\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- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/209128620","html_url":"https://github.com/mrdoob/three.js/issues/8620#issuecomment-209128620","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/8620","id":209128620,"user":{"login":"tschw","id":3916357,"avatar_url":"https://avatars.githubusercontent.com/u/3916357?v=3","gravatar_id":"","url":"https://api.github.com/users/tschw","html_url":"https://github.com/tschw","followers_url":"https://api.github.com/users/tschw/followers","following_url":"https://api.github.com/users/tschw/following{/other_user}","gists_url":"https://api.github.com/users/tschw/gists{/gist_id}","starred_url":"https://api.github.com/users/tschw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschw/subscriptions","organizations_url":"https://api.github.com/users/tschw/orgs","repos_url":"https://api.github.com/users/tschw/repos","events_url":"https://api.github.com/users/tschw/events{/privacy}","received_events_url":"https://api.github.com/users/tschw/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T22:28:12Z","updated_at":"2016-04-12T22:28:12Z","body":"A box of `NaN`s really shouldn't be anything, so your title reads like \"please direct me to Stackoverflow\".\r\n\r\n> This is troublesome for cases where we use applyMatrix4() transformations to empty boxes and expect them to remain empty.\r\n\r\nThis *is* an interesting case, however. \r\n\r\nI think it should be fixed by documentation: `if ( ! box.empty() ) box.applyMatrix4( m )` is not too hard to write and in most typical uses there won't be empty boxes around."}}