0% found this document useful (0 votes)
24 views11 pages

Graphic

The document discusses reflection and shearing transformations in 3D space, detailing the types of reflections possible along the X-Y, Y-Z, and X-Z planes, along with transformation matrices. It provides examples of reflection transformations applied to a cube and a triangle, showing how coordinates change after reflection. Additionally, the document explains shearing in three directions (X, Y, Z) and includes equations and matrix representations for each type of transformation.

Uploaded by

Maira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views11 pages

Graphic

The document discusses reflection and shearing transformations in 3D space, detailing the types of reflections possible along the X-Y, Y-Z, and X-Z planes, along with transformation matrices. It provides examples of reflection transformations applied to a cube and a triangle, showing how coordinates change after reflection. Additionally, the document explains shearing in three directions (X, Y, Z) and includes equations and matrix representations for each type of transformation.

Uploaded by

Maira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Reflection:

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 –

The Reflection transformation matrix is used to perform the


reflection operation over the 3D image, which is as follows:

Consider, a point P[x, y, z] which is in 3D space is made to reflect


along X-Y direction after reflection P[x, y, z] becomes P'[x’ ,y’ ,z’].

1
2. Reflection along the Y-Z plane: This is shown in the following
figure –

The reflection transformation matrix for y-z axes is as follows:

Consider, a point P[x, y, z] which is in 3D space is made to reflect


along Y-Z direction, after reflection P[x, y, z] becomes P'[x’ ,y’
,z’].

2
3. Reflection along the X-Z plane: This is shown in the following
figure

The Reflection transformation matrix for z-x axes is as follows:

Consider, a point P[x, y, z] which is in 3D space is made to reflect


along Z-X direction, after reflection P[x, y, z] becomes
P'[x’, y’, z’].

3
Question 1:

Consider a cube ‘OABCDEFG’, which is given below, perform


reflect transformation over it along X-Y plane.
The given cube is as follows:

Solution:
So, Matrix representation condition of Reflection
transformation along X-Y axis:

Point O[0 0 0] becomes O’ after performing Reflection


transformation:

4
Point A[0 4 0] becomes A’ after performing Reflection
transformation:

Point B[0 4 4] becomes B’ after performing Reflection


transformation:

Point C[-4 4 0] becomes C’ after performing Reflection


transformation:

Point D[4 4 4] becomes D’ after performing Reflection


transformation:

5
Point E[4 0 0] becomes E’ after performing Reflection
transformation:

Point F[0 0 4] becomes F’ after performing Reflection


transformation:

Point G[4 0 4] becomes G’ after performing Reflection


transformation:

After performing Reflection Transformation over the above


figure (Fig.1) would look like:

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:

Point A[3 4 1] becomes A’ after performing Reflection


transformation:

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.

So there are three versions of shearing:

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.

Shearing in X axis is achieved by using the following shearing equations

. X new = X old

Y new = Y old + Shy * X old

Z new = Z old + Shz * X old

In matrix form, the above shearing equation may be represented as

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]

P’[x y z 1] = P [x old y old z old 1] * Sx

P’[x, y, z ] = P [x old, y new, z new ]

Shearing in Y axis Here the coordinate of ( Y ) remains unchanged while the coordinate
of X and Z is changed.

Shearing in Y axis is achieved by using the following shearing equations.

X new = X old + Shx * Y old

Y new = Y old

Z new = Z old + Shz * Y old

In matrix form, the above shearing equation may be represented as

9
Shearing in Z axis Here the coordinate of ( Z ) remains unchanged while the coordinate of
X and Y is changed.

Shearing in Z axis is achieved by using the following shearing equations.

X new = X old + Shx * Z old

Y new = Y old + Shy * Z old

Z new = Z old

In matrix form, the above shearing equation may be represented as

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

You might also like