title: How to get the geometry of a model imported from STL in three.js
body: <p>I'm using STLLoader to load STL file into three.js and I want to get the vertices (and the geometry) of the model after I call the loader for further usage. How can I do that? My current code is as below but I cannot get the geometry after calling the loader.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var loader = new THREE.STLLoader();
  var myModel = new THREE.Object3D();
  
  loader.load("myModel.stl", function (geometry) {
          var mat = new THREE.MeshLambertMaterial({color: 0x7777ff});
          var geo = new THREE.Geometry().fromBufferGeometry(geometry);
          myModel = new THREE.Mesh(geo, mat);
          scene.add(myModel);
   });
  
  console.log(myModel.geometry.vertices)</code></pre>
  </div>
  </div>
  </p>