PDA

View Full Version : scaling factor on axis



inventorGL
04-01-2011, 10:14 PM
Hello,
I am a new user of Open Inventor. I am looking for the way to draw Z axis with different scaling factor, can anyone help pointing out the solution? In my application, the z values are too small compared with the x & y values, so I need to scale the z values up in order to view them all on the scene, but I cannot find the correct parameter and function to use.
Thanks for help.

mikeheck
04-02-2011, 01:44 PM
The usual solution would be an SoTransform or SoScale node. The scaleFactor field takes an SbVec3f containing scale factors for the X, Y and Z axes. A scaleFactor of 1,1,2 for example would expand the Z axis without affecting the X and Y axes.