HC_Scale_Object

void HC_Scale_Object(double x, double y, double z)
void HC_Scale_Object(double x, double y, double z)

Enlarges or reduces objects within the user data space. Not to be confused with Zoom_Camera.

Everything in the segment is made larger or smaller. A scale factor of 2 will result in an object that’s twice as big, while 0.5 yields one of half size.

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.

If z is given as zero, it will, given no Rotations, make a 3-D object qualify as 2-D and speed up display.

HC_Translate_Object, HC_Rotate_Object, HC_Append_Modelling_Matrix, HC_Set_Modelling_Matrix, HC_Dolly_Camera, HC_Zoom_Camera.

Parameters

x: Factor to stretch things by along the X -axis. x < 1 reduces size

y: Stretch, along the Y-axis.

z: Likewise, along Z.