title: THREE.OBJLoader - Scale mesh and BufferGeometry vertices
body: <p>I'm using <a href="https://threejs.org/docs/#examples/loaders/OBJLoader" rel="nofollow noreferrer">THREE.OBJLoader</a> to load a 3D model into my scene. It works fine.</p>
  
  <p>However, after adding it to the scene, I need to scale it by 10, then retrieve its vertices position.</p>
  
  <p>I know that <code>THREE.OBJLoader</code> gives me a <code>BufferGeometry</code>, and I know how to access its vertices using <code>position</code> attribute.</p>
  
  <p>My problem is: the <code>Float32Array</code> storing these vertices doesn't seem to be updated after scaling my mesh, whether I do it before or after adding it to the scene.</p>
  
  <p>I use this snippet to scale the mesh just after I got it from the loader:</p>
  
  <pre><code>myMesh = new THREE.Mesh(loadedMesh.geometry, new THREE.MeshBasicMaterial({color: 0xff0000}));
  myMesh.scale.set(10, 10, 10);
  </code></pre>
  
  <p>Then I get the vertices using:</p>
  
  <pre><code>var myMeshVertices = myMesh.geometry.attributes.position.array;
  </code></pre>
  
  <p>Doing that, my mesh is added to the scene with the proper (scaled) dimensions, but its <code>BufferGeometry</code> doesn't want to update the vertices values.</p>
  
  <p>I did a lot of tests involving <code>myMesh.geometry.attributes.position.needsUpdate = true;</code> or <code>myMesh.updateMatrix();</code>, and I've seen a lot of SO questions around this subject (<a href="https://stackoverflow.com/questions/20303239/three-js-how-to-update-buffergeometry-vertices">here</a> or <a href="https://stackoverflow.com/questions/32430260/threejs-buffergeometry-position-attribute-not-updating-when-translation-applied">here</a>), but I couldn't find a solution...</p>
  
  <p>Could you tell me if I misunderstand something here? (keeping in mind that I just began with Three.js and WebGL, so I most certainly lack knowledge about this).</p>