You are on page 1of 1

ME 608 CAD/CAM

Lab - 03
1. Develop MATLAB based programs to carryout various affine transformations in two-
dimension as well as three-dimension domains.
2. Display the composite transformation matrices.
3. Carry out the transformations in 2D for a unit square located at the origin
a) Rotation about Z-axis by 30˚
b) Uniform scaling by a factor of 2.75
c) Translation along X-axis by 7 units and Y-axis by 10 units
d) Reflection about X-axis
4. Carry out the transformation in 3D for a unit cube located at the origin
a) Translation along a position vector [15, 15, 15]
b) Uniform scaling by a factor of 1.5
c) Rotation about X-axis by 20˚ in y-z plane
5. Carry out the transformation of the square in position 1 into the rectangle in position 2. The
coordinates of the square and the rectangle are as follows:
x y
A 4 4
C 8 8
B’ -2 -1
D’ -6 -2

6. Carry out the transformation of a tetrahedron with the vertices P1 [0,0,0], P2 [1,0,0], P3 [0,1,0]
and P4 [0,0,1]
a) Rotation about Z axis by 20˚ in clockwise direction followed by rotation about X axis
by 10˚ in counter clockwise direction
b) Translation of the object by a vector [8,8,8]
c) Reflection about X-Y plane
7. Compute the image of the point P [6,7] about a line passing through the points P 1 [1,1] and P2
[10,8]

You might also like