CZ2003 Tutorial 9 (2020/2021, Semester 1)
3D Transformations
1. The following matrix defines a 3D rotation transformation
Identify the rotation axis, rotation direction and rotation angle of this
transformation.
2. The following VRML code defines a Transform node:
Transform {
rotation 1 0 1 3.1415926
scale 1 1 3
translation 2 0 1
children […]
}
Assuming a column represented position vector, write in a proper order the
individual matrices composing this transformation. The final matrix is not
required.
3. Assuming a column represented position vector, write in a proper order individual
matrices implementing the transformation of reflection about a straight line
defined parametrically by x = 1 − t , y = 0, z = 2t , t ∈ (− ∞, ∞ ) . The final matrix is
not required.
4. A semi-circle on the ZX plane is shown in Fig.4 (left). It undergoes a sweeping by
a full rotation about the Y-axis and a translation along the Y-axis by 2 units
simultaneously, which produces a surface as shown in Fig.4 (right). By utilizing
transformation matrices, derive a parametric representation of the surface.
Fig.4
Sint30
t [Link]
Rotatienaxis
YaxisRotatienaugle 3o
Rotationdirection clockwise
axayaz O
1
I X
tpsitire 94
i
Sowlate
I Rotationaxis
zaxis Of 1101
vz
orderisalwaysscaletirstithenntatienthetinally translation
I
ii 000 I
translation
t
Ritate
it
in
i
aboutaxis scaledYiZ
by Rotate axes
2
1 tosetback about'laxisto
therotation setrotationaxis
axis tozaxis
Sample 2pointsontheline
when1 0 Whentil Reflectionabout taxis
OH 20
yO
E f
go
2 2
BY
Rotation backlabouttaxis
thedirectionoftheline
iii [Link]
performatranslationtomunepoint
I it
taxis
40,0 to make twine alignedwith
00 I Translateback
at L
Aftertranslation pointsare 10,00
and Clio 21
I L
individualmatrix
1 2
liftoff 55 1 l
d J 12123122121T
at
Rolationlaboutyaxis x
y i iiit
Bruni
D
1 parametricequationof semi circle
asinutul
yO
Z 2WSUTUH2
2 construct therotation [Link]
counterclockwise
Ry [Link]
3 dealwiththetranslation
let fiolbeadisplacementfunc
Hot Ao113
At OTB O BO
101 0
2
fc2lt LAX2TtB
A
42TlflfI
YA OH
4 Apply transformations to linesegment
XM'd
I 000 Wso o si 0
f
t'[Link] [Link]
i
oiH iHI
Instation
cosoisino o dont 404 4 10
O l O you
Sino O WSO O tour
O O O I I
downwsotyocultzoculsino
Yount since Youth
Tobulsinotzolutwso
I
dolutoosotZoullsino
mfs'Inotzounoso
5 Reparameterizo
let 0 2TV VEEAD
final equate
out H 2sinMHWSCLAVI 1410slant 2 sin12kV
V
guilt 27
EUN 25in SIN12TH t 121051M12110515kV