Functions | |
void | Scale_Object (double x, double y, double z) |
void | QScale_Object (const char *segment, double x, double y, double z) |
void Scale_Object | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Enlarges or reduces objects within the user data space. Not to be confused with Zoom_Camera.
x | - Factor to stretch things by along the X -axis. x < 1 reduces size | |
y | - Stretch, along the Y-axis. | |
z | - Likewise, along Z. |
The transform that is supplied to Append_Modelling_Matrix() is defined as
The three scale factors are usually equal, to give uniform scaling in all dimensions. If a scale factor is zero, the object becomes 2 dimensional. If all three are zero, all the objects are transformed to a point. If scale factors are negative, you can obtain mirroring.
Scale_Object() is a modelling transformation---it should be thought of as changing the effective size of the object you have drawn. If you want the scene on the screen to look bigger or smaller, try Dollying in or out or Zooming.
void QScale_Object | ( | const char * | segment, | |
double | x, | |||
double | y, | |||
double | z | |||
) |
Similar to Scale_Object(), but operates on a given segment rather than the currently open one.
segment | - Name of the segment(s) to be changed. | |
x | - Factor to stretch things by along the X -axis. x < 1 reduces size | |
y | - Stretch, along the Y-axis. | |
z | - Likewise, along Z. |