{"action":"created","issue":{"url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/6","labels_url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/6/comments","events_url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/6/events","html_url":"https://github.com/wildpeaks/json-scenegraph/issues/6","id":58513755,"number":6,"title":"MFVec3f: [1,2,3,4,5,6] or [[1,2,3],[4,5,6]] ?","user":{"login":"cecilemuller","id":681420,"avatar_url":"https://avatars.githubusercontent.com/u/681420?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilemuller","html_url":"https://github.com/cecilemuller","followers_url":"https://api.github.com/users/cecilemuller/followers","following_url":"https://api.github.com/users/cecilemuller/following{/other_user}","gists_url":"https://api.github.com/users/cecilemuller/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilemuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilemuller/subscriptions","organizations_url":"https://api.github.com/users/cecilemuller/orgs","repos_url":"https://api.github.com/users/cecilemuller/repos","events_url":"https://api.github.com/users/cecilemuller/events{/privacy}","received_events_url":"https://api.github.com/users/cecilemuller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wildpeaks/json-scenegraph/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T19:05:32Z","updated_at":"2015-02-22T19:07:45Z","closed_at":"2015-02-22T19:07:45Z","body":"Single numeric value are expressed with a simple Number, but how should [MFVec3f (and other MFVec types)](http://www.web3d.org/documents/specifications/19775-1/V3.2/Part01/fieldsDef.html#SFVec2fAndMFVec2f) be represented: a single long Array, or an Array of tiny Arrays ?"},"comment":{"url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/comments/75451590","html_url":"https://github.com/wildpeaks/json-scenegraph/issues/6#issuecomment-75451590","issue_url":"https://api.github.com/repos/wildpeaks/json-scenegraph/issues/6","id":75451590,"user":{"login":"cecilemuller","id":681420,"avatar_url":"https://avatars.githubusercontent.com/u/681420?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilemuller","html_url":"https://github.com/cecilemuller","followers_url":"https://api.github.com/users/cecilemuller/followers","following_url":"https://api.github.com/users/cecilemuller/following{/other_user}","gists_url":"https://api.github.com/users/cecilemuller/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilemuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilemuller/subscriptions","organizations_url":"https://api.github.com/users/cecilemuller/orgs","repos_url":"https://api.github.com/users/cecilemuller/repos","events_url":"https://api.github.com/users/cecilemuller/events{/privacy}","received_events_url":"https://api.github.com/users/cecilemuller/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T19:07:45Z","updated_at":"2015-02-22T19:07:45Z","body":"While the second is more explicit, the first one (a single long Array) has the benefits:\r\n - same as VRML and X3D\r\n - less nested\r\n - creating a single array has less overhead than creating many tiny ones, especially with large MFVec2f\r\n\r\nAlso WebGL uses [Typed Arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays) which is created using a single Array (although that's an implementation detail)."}}