function makeInstance(color, size, x, y, z) {
      var geometry = new THREE.BoxGeometry(size, size, size);
      var material = new THREE.MeshBasicMaterial({ color });

      const cube = new THREE.Mesh(geometry, material);
      scene.add(cube);

      cube.position.x = x;
      cube.position.y = y;
      cube.position.z = z;
    }
// Display a cube to see where a point is
Display a cube to see where a point is
Display a cube to see where a point is
function makeInstance(color, size, x, y, z) {
      var geometry = new THREE.BoxGeometry(size, size, size);
      var material = new THREE.MeshBasicMaterial({ color });
      const cube = new THREE.Mesh(geometry, material);
      scene.add(cube);
      cube.position.x = x;
      cube.position.y = y;
      cube.position.z = z;
    }
function makeInstance ( color , size , x , y , z ) { var geometry = new THREE . BoxGeometry ( size , size , size ) ; var material = new THREE . MeshBasicMaterial ( { color } ) ; const cube = new THREE . Mesh ( geometry , material ) ; scene . add ( cube ) ; cube . position . x = x ; cube . position . y = y ; cube . position . z = z ; }
Display a cube to see where a point is
Display a cube to see where a point is