Professional Documents
Culture Documents
Computer Aided Design and Manufacture: Graphics Programming
Computer Aided Design and Manufacture: Graphics Programming
and Manufacture
Graphics Programming
Computer Graphics
Computer graphics allows the designer to
project an image onto a graphic screen for
manipulation.
change the scale of an image to see some details
more clearly
rotate an image to a certain angle to get a better
view of an object
translate an image to another location to display
it in a different environment.
Computer Graphics
These are the basic functions of computer
graphics and can be accomplished by using
geometric transformation techniques.
Cartesian Coordinate System
Homogenous
Transformation
Matrix
Object under
transformation in
in 3D space
Rotation about the x axis
Rotation
Object under Rotation onto yz plane
Rotation
Equation
Object under
Rotation onto yz
plane
Homogenous
Transformation
Matrix
Rotations
Rot(x,theta)
Rot(
Example
Mapping between two
coordinate system
Equation
Object under
Rotation onto yz
plane
Mapping
Transformation
Matrix
Mapping example
Corresponding to the viewpoint (-10, 0,1), the viewsite (0, 0, 1)
and the up vector (0, 0, 1), the viewing coordinate system is
drawn. From the relative position between the viewing
coordinate system and the world coordinate system: (1)
calculate the mapping transformation Tw-v (2) Calculate the
coordinates of the point in viewing coordinates if it has world
coordinates of (5, 0, 1).
Mapping example
Corresponding to the viewpoint (-10, 0,1), the viewsite (0, 0, 1)
and the up vector (0, 0, 1), the viewing coordinate system is
drawn. From the relative position between the viewing
coordinate system and the world coordinate system: (1)
calculate the mapping transformation Tw-v (2) Calculate the
coordinates of the point in viewing coordinates if it has world
coordinates of (5, 0, 1).
Scaling
To scale an object up or down sx times in x, sy times
in y, and sz times in the z direction, the following
transformation matrix is applied: