Professional Documents
Culture Documents
Transformations
BITS Pilani Dr. Srinivasa Prakash Regalla
Department of Mechanical Engineering
Hyderabad Campus
Learning OBJECTIVES
Homogeneous form:
MCS X
Z
BITS Pilani, Hyderabad Campus
Exercise:
Find the mid-point and 3/4th distance point on the parametric straight line between
points P0=(5,8,3) and P1=(12,18,15). Use homogeneous form.
Solution:
Y zL1k
P1 yL1j
L1
P0
xL1i
P0 P1
MCS X
Z
Rotation
Translation or panning
Scaling or zooming
Mirroring or reflection
Find P* resulting from the point P = (5,3,1) mm being rotated by 60° about the
MCS Z-axis.
x* x xd
P* P d y* y y d d
P*
z* z z
d
P
P x y z
T
T
X
same
where P * x * y * z *
d xd y d z d
T MCS
Y
1 0 0 2
x * x 1 3
* 0 1 0 1
P y * [T ] y 1 2 X
z * z 0 0 1 1 1 2 Z
0
0 0 1 1 1
1 1
BITS Pilani, Hyderabad Campus
SCALING Transformation
General Scaling about the MCS origin (Non-affine):
Increase and decrease s x 0 0 0
in size is achieved by 0
P * S P where S
s y 0 0 ; si 0
scaling. Scaling may 0 0 s z 0
be done w. r. t. origin 0 0 0 1
of MCS or another x* s x 0 0 0 x
*
point. y 0 sy 0 0
y
*
Uniform scaling is
z 0 0 s z 0 z
1
implemented as 0 0 0 1 1
“zoom” operation; its x * s x x; y * s y y; z * s z z
an affine/isometric If S I no scaling ;
transformation if there If S sI uniform scaling
is no change of shape If s 1 size increases zoom in
If s 1 size decreases zoom out
X
X X
Z
Z Z
X
X X
Z
Z Z
Through the origin of MCS:
1)Through a principal plane: It is Through a principal axis: equivalent to reflecting through
equivalent to negating the equivalent to reflecting through the three principal planes
corresponding coordinate of each the two principal planes intersecting at the origin:
point on the entity. intersecting at that axis. m11= m22=m33= -1
P*= - P
X=0 plane => m11= -1, m22=m33=1 X - axis => m11= 1, m22=m33=-1 Magnitudes of the tangent
Y=0 plane => m11=m33=1; m22= -1 Y - axis => m11=m33=-1; m22= 1 vectors remain same,
Z=0 plane => m11=m22=1; m33= -1 Z - axis => m11=m22=-11; m33= 1 directions are reversed.
Mapping
Mapping
Mapping involves the object being fixed in space and we seek the coordinates of
its points with respect to a different coordinate system
Useful for transferring feature data from WCS to MCS
Cosine
of Angle
of Y with
1 0 0 a 1 a 1
Xw 0
0 1 b 1 b 0
[C ]
0 1 0 c 0 c 1
Cosine
of angle Cosine
of Y with
0 0 1 1 1
of angle
Yw of Y with 0
Zw BITS Pilani, Hyderabad Campus
THANK YOU!
ANY QUESTIONS!