{"action":"opened","issue":{"url":"https://api.github.com/repos/cnrd/IDE15-16/issues/17","labels_url":"https://api.github.com/repos/cnrd/IDE15-16/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/cnrd/IDE15-16/issues/17/comments","events_url":"https://api.github.com/repos/cnrd/IDE15-16/issues/17/events","html_url":"https://github.com/cnrd/IDE15-16/issues/17","id":122763429,"number":17,"title":"Setting size of atoms","user":{"login":"cnrd","id":5996053,"avatar_url":"https://avatars.githubusercontent.com/u/5996053?v=3","gravatar_id":"","url":"https://api.github.com/users/cnrd","html_url":"https://github.com/cnrd","followers_url":"https://api.github.com/users/cnrd/followers","following_url":"https://api.github.com/users/cnrd/following{/other_user}","gists_url":"https://api.github.com/users/cnrd/gists{/gist_id}","starred_url":"https://api.github.com/users/cnrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnrd/subscriptions","organizations_url":"https://api.github.com/users/cnrd/orgs","repos_url":"https://api.github.com/users/cnrd/repos","events_url":"https://api.github.com/users/cnrd/events{/privacy}","received_events_url":"https://api.github.com/users/cnrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T15:55:16Z","updated_at":"2015-12-17T15:55:16Z","closed_at":null,"body":"I just tried setting the size using the 'radius' attribute. but x3dom is just spewing errors.\r\n\r\nThis works:\r\n\r\n    atomScene.append('transform').attr('translation','-52.822 -1.611 23.137')\r\n\t\t      .append('shape').append('sphere').attr('class', atoms').attr('radius', '0.5')\r\n\t\t      .select(function(){\r\n\t\t\t\t\t\treturn this.parentNode;\r\n\t\t\t \t\t})\r\n\t\t      .append('appearance').append('material').attr('diffuseColor','red');\r\n\r\nThis does not work:\r\n\r\n    \tatomScene.selectAll('sphere')\r\n\t\t\t .data(data)\r\n\t\t\t .enter()\r\n\t\t\t .append('transform').attr('translation', function(d){\r\n\t\t\t \t// Setting x, y, z coordinates\r\n\t\t\t \t// No reason to do scaling, we can just move the viewport\r\n\t\t\t \treturn d.x + ' ' + d.y + ' ' + d.z;\r\n\t\t\t })\r\n\t\t\t .append('shape').append('sphere').attr('class','atoms').attr('radius', '0.5')\r\n\t\t\t .select(function(){\r\n\t\t\t \t// Apperance should be inside the 'shape node'\r\n\t\t\t \treturn this.parentNode;\r\n\t\t\t })\r\n\t\t\t .append('appearance').append('material').attr('diffuseColor', function(d){\r\n\t\t\t \t// Setting the color of atoms\r\n\t\t\t \treturn colorAtom(d.element);\r\n\t\t\t });\r\n\r\nEven when the actual html code before x3dom translation is the exact same..."}}