Non-uniform scaling

Started by Irony, August 15, 2014, 01:41:58 PM

Previous topic - Next topic

Irony

It would be really convenient to have a non-uniform scale function for Object3D, something like scale(x,y,z). (I know there are ways to achieve that, but not as comfortable.)
Do you have any plans to implement that someday?

EgonOlsen

No, that's not likely to happen. Albeit it sounds like a trivial thing, it would require a lot of internal changes and i don't think that it would be worth it. You can consider this a design flaw, but it would be really hard to fix this in the current stage.

Irony

Ok, thanks for giving a definite answer on that one.

EgonOlsen

If you want to apply non-uniform scaling at setup time, you can always tweak the rotation matrix and make the rotations permanent to the mesh (rotateMesh()).

Irony

Thanks, I've already found a snippet somewhere on the forums and use that.