I am currently working on creating a spherical design using three.js. My goal is to have clickable dots and meshes embedded within this sphere. To achieve this, I believe that assigning names to each dot on the sphere will be essential. I have two specific questions: 1. How can I randomize the positions of the dots on the sphere? 2. What is the best approach for naming the dots and meshes?
THREE.IcosahedronGeometry = function(radius, detail) {
// Geometry code here
};
// Implementing the geometry parameters and constructor
// Setting up the scene with camera and renderer
// Creating the vertex points using an Icosahedron Geometry
// Configuring the BufferGeometry for the points
// Adding material and color to the Points
// Creating an Object3D container for our points and mesh
// Adjusting camera position and setting up rendering loop
You can view the complete code and visual representation at http://codepen.io/anon/pen/ZLpPxB.