Apply transformation to the matrix and reset values on Three.js
<p>I'm having an issue with my 3D manipulation application. I'm using the THREE.JS. What I'm trying to do is change the scale of one object, apply this transformation to the original matrix and then restore the values of scale to 1.</p>

<p>I need to restore the transformation because some functions used by the UI are using this information. So, basicaly I want to considere this new size as the original size, without any transformations.</p>

<p>Is there any way to do that? I did some research but none of the answers has solved my issue.</p>

<pre><code>var scale = 0.5; 
object.scale.set(scale, scale, scale);
</code></pre>