title: Function that clones a group of objects in ThreeJS?
body: <p>I am trying to create a scene for my class where a group of objects (a model) has to be cloned and displayed in random positions. I created a function for this, but unfortunately, it only transfers the same object from one place to another. I need to add more objects instead of moving the same one, but sadly I cannot find any information about it. I tried to clone, but I failed :/ Later on, I will have to remove these models one by one, so if anybody could give advice on that too, I would appreciate it.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>this.addmodel = function() {
      scene.add(model);
      model.name = "model-" + scene.children.length;
      model.position.x= -20 + Math.round((Math.random() * 40));
      model.position.y= Math.round((Math.random() * 5));
      model.position.z= -17.5 + Math.round((Math.random() * 35));
      this.numOfObjects = scene.children.length;
  }
  </code></pre>