AddictArts/three.js — comment on commit 3a4b8d442c0c547007bb6bccafe9e4a32f5cf898
File:  line 0
By ekitson:

I agree it's better if the geometry is already modeled properly, but sometimes its not and we'd like to be able make procedural modifications without having to bother the model's author to fix it (assuming we have access to the author). As an example, we have this scene loaded using the `ColladaLoader`:
http://wiki.kuda.googlecode.com/hg/screenshots/logOriginal.png

If we wanted to make the logs a little bigger, we do something like
`logs.scale.x = logs.scale.y = logs.scale.z = 1.2;`
and end up with this:
http://wiki.kuda.googlecode.com/hg/screenshots/logBadScale.png

Obviously the log geometry is not centered at the local origin. Setting `scaleOffset` to the log's center of geometry gives this:
http://wiki.kuda.googlecode.com/hg/screenshots/logGoodScale.png

I tried calling `THREE.GeometryUtils.center(logs.geometry);`, but the result was the same as the second image. Am I not using it properly?