{"id":12833,"date":"2023-01-02T13:05:33","date_gmt":"2023-01-02T18:05:33","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12833"},"modified":"2023-01-02T13:05:49","modified_gmt":"2023-01-02T18:05:49","slug":"create-rhree-js-sphere","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/create-rhree-js-sphere\/","title":{"rendered":"Create Three.js Sphere Example Code"},"content":{"rendered":"\n
Using the SphereGeometry class to create a sphere.<\/p>\n\n\n\n
const geometry = new THREE.SphereGeometry( 15, 32, 16 );\nconst material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );\nconst sphere = new THREE.Mesh( geometry, material );\nscene.add( sphere );<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,25,27,15,16,18],"tags":[33,350,424,433,449,1215,591],"yoast_head":"\nCreate Three.js Sphere Example Code [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n