3-D Transformations: Figure 5.33 Geometric 3-D Transformation
3-D Transformations: Figure 5.33 Geometric 3-D Transformation
3-D Transformations: Figure 5.33 Geometric 3-D Transformation
5.3.1.1 Translation
In translation, all the points of the object move a distance in a given direction as shown in the
figure 5.35.
5.3.1.2 Scaling
A 3-D object may be enlarged or shrunk by a constant proportion to change its actual dimension.
This process is known as scaling. If the scale factor is more than one, the scaling is called
magnification and if less than one it is reduction (see figure 5.36).
5.3.1.3 Rotation
Rotations in which one of the positive x, y or z coordinate axes is taken to be the axis of rotation are
called canonical rotations. In such cases the construction of the rotation transformation proceeds just
like that of a rotation in two dimensions about the origin (see figure 5.37).
y
Figure 5.37: Rotation Transformation
Qns-
Consider a rectangular parallelepiped, which is unit distance on z-axis, 2-distance on x-axis and 3-
distance on y-axis (figure 5.41). What is the effect of scaling when scaling factor S x = ½, Sy = 1/3 and
Sz = 1?
H G
D C
x
E F
A B
Figure 5.41
0 0 1 1 A
2 0 1 1 B
2 3 1 1 C
0 3 1 1 D
X
0 0 0 1 E
2 0 0 1 F
2 3 0 1 G
0 3 0 1 H
The vertices of the parallelepiped are A(0, 0, 1), B(2, 0, 1), C(2, 3, 1), D(0, 3, 1), E(0, 0, 0), F(2, 0,
0), G(2, 3, 0) and H(0, 3, 0). The same can be represented in homogeneous matrix from as:
The required transformation matrix for scaling is
1 / 2 0 0 0
0 1/3 0 0
[T ]
0 0 1 0
0 0 0 1
Applying this transformation on the given set of points (i.e. [X]) we get the new transformed point
(i.e. [X*])
[X*] = [X] [T]
0 0 1 1 0 0 1 1 A *
2 0 1 1 1 0 1 1 B *
2 3 1 1 1 / 2 0 0 0 1 1 1 1 C *
0 3 1 1 0 1/3 0 0 0 1 1 1 D *
X
0 0 0 1 0 0 1 0 0 0 0 1 E *
2 0 0 1 0 0 0 1 1 0 0 1 F *
2 3 0 1 1 1 0 1 G *
0 3 0 1 0 1 0 1 H *
The new transformed coordinates show that the transformed object is a unit cube as shown in figure
5.42.
H*
G*
D* C*
E* F*
A* B*