Friday 14 October 2011

COMPOSITE TRANSFORMATIONS


EX NO :8                                     COMPOSITE TRANSFORMATIONS

AIM
To perform the various 3-dimensional transformations such as translation, scaling, rotation.

Algorithm
A rotation matrix for any axis that does not coincide with a coordinate axis can be set up as a composite transformation involving combination of translations and the coordinate-axes rotations.

1.     Translate the object so that the rotation axis passes through the coordinate origin

2.     Rotate the object so that the axis rotation coincides with one of the coordinate axes

3.     Perform the specified rotation about that coordinate axis

4.     Apply inverse rotation axis back to its original orientation

5.     Apply the inverse translation to bring the rotation axis back to its original position


RESULT:
 Thus the program is executed successfully.

0 comments:

Post a Comment