Graphic
Graphic
Introduction:
Reflection in 3D space is quite similar to the reflection in 2D space,
but a single difference is there in 3D, here we have to deal
with three axes (x, y, z). Reflection is nothing but a mirror image of
an object.
Three kinds of Reflections are possible in 3D space:
Reflection along the X-Y plane.
Reflection along Y-Z plane.
Reflection along X-Z plane.
1. Reflection along the X-Y plane: This is shown in the following
figure –
1
2. Reflection along the Y-Z plane: This is shown in the following
figure –
2
3. Reflection along the X-Z plane: This is shown in the following
figure
3
Question 1:
Solution:
So, Matrix representation condition of Reflection
transformation along X-Y axis:
4
Point A[0 4 0] becomes A’ after performing Reflection
transformation:
5
Point E[4 0 0] becomes E’ after performing Reflection
transformation:
6
Question 2:
Given a 3D triangle with coordinate points A(3, 4, 1), B(6, 4, 2),
C(5, 6, 3). Apply the reflection on the XY plane and find out the
new coordinates of the object.
Solution:
So, Matrix representation condition of Reflection
transformation along X-Y axis:
A’[x y z 1]=[3 4 1 1]
=[3 4 -1 1]
A’[x,y,z]=[3,4,1]
Point B[6 4 2] becomes B’ after performing Reflection
transformation:
B’[x y z 1]=[6 4 2 1]
7
=[6 4 -2 1]
A’[x,y,z]=[6 4 -2]
Point C[5 6 3] becomes C’ after performing Reflection
transformation:
C’[x y z 1]=[5 6 3 1]
=[5 6 -3 1]
A’[x,y,z]=[5 6 -3].
Shearing:
It is change in the shape of the object. It is also called as deformation. Change can be in the x
-direction or y -direction or both directions in case of 2D. If shear occurs in both directions,
the object will be distorted. But in 3D shear can occur in three directions.
1. Shearing in x axis
2. Shearing in y axis
3. Shearing in z axis
8
Shearing in X axis Here the coordinate of ( X ) remains unchanged while the coordinate
of Y and Z is changed.
. X new = X old
Consider a point P[x, y, z] in 3D space over which we perform the shearing transformation in
X-direction and it becomes P’[x, y, z]
Shearing in Y axis Here the coordinate of ( Y ) remains unchanged while the coordinate
of X and Z is changed.
Y new = Y old
9
Shearing in Z axis Here the coordinate of ( Z ) remains unchanged while the coordinate of
X and Y is changed.
Z new = Z old
Example :
Perform shearing translation in the given cuboid ( OABCDEFG ) along Zdirection if a shearing
parameter is as follows Sx=2, Sy=3
Answer :
The shearing transformation matrix for Z-direction is as follows.
Now, we’ll apply the shearing transformation condition over all the coordinates and
calculate the new corresponding coordinates:
10
P’[x y z 1] = P [x old y old z old 1] * Sx
11