Projection Views
Content Coordinate systems Orthographic projection (Engineering Drawings)
Graphical Coordinator Systems A coordinate system is needed to input, store and display model geometry and graphics. Four different types of coordinate systems are used in a CAD system at different stages of geometric modeling and for different tasks.
Model (or World, Database) Coordinator System The reference space of fthe model with respect tto which hall of the geometrical data is stored. It is a Cartesian system which forms the default coordinate system used by a software system. z y Y X x Z
Viewing Coordinate System View Plane Textbook setup - for Parallel l Projection, the viewer is at infinity. Zv Yv Xv View Window Viewing Direction Viewer AutoCAD Default Setup Z Y X Viewer
Viewing Coordinate System (VCS) A 3-D Cartesian coordinate system (right hand of left hand) in which a projection of the modeled object is formed. VSC will be discussed in detail under Perspective or Parallel Projections. Viewing Coor. System Model Coor Sys
P
Viewer Viewer
Parallel Projection Preserve actual dimensions and shapes of objects Preserve parallelism Angles preserved only on faces parallel to the projection plane Orthographic projection is one type of parallel projection
Perspective Projection Doesn t preserve parallelism Doesn t preserve actual dimensions and angles of objects, therefore shapes deformed Popular in art (classic painting); architectural design and civil engineering. Not commonly used in mechanical engineering
Geometric Transformations for Generating Projection View Set Up the Viewing Coordinate System (VCS) i) Define the view reference point P = ( P x, P y, P z ) T v ii) Define the line of the sight vector n (normalized) v n = ( N x, N y, N z ) T and N 2 x + N 2 y + N 2 z =1 iii) Define the "up" direction v T V = V x, V y, V z n, V v n v = 0 r u, V v, v n ( ) T v This also defines an orthogonal vector, ( ) forms the viewing coordinates Define the View Window in u v n coordinates v u = V v v n
Generating Parallel Projection Problem: for a given computer model, we know its x-y-z coordinates in MCS; and we need to find its u-v-n coordinates in VCS and X s -Y s in WCS. Getting the u-v-n coordinates of the objects by transforming the objects and u-v-n coordinate system together to fully align u-v-n with x-y-z axes, then drop the n (the depth) component to get Xs and Ys Viewing Coor. System Model Coor Sys - Translate O v to O. - Align the n axis with the Z axis. - Fully aligning u-v-n with x-y-z
Generating Parallel Projection (1) First transform coordinates of objects into the u-v-n coordinates (VCS), then drop the n component. (n is the depth) i.e. Overlapping u - v n with x -y -z i) Translate O v to O. ) v v n ii) Align the axis with the Z axis. The procedure is identical to the transformations used to prepare for the rotation about an axis. A = N x, B = N y, C = N z L = N x 2 + Ny 2 + Nz 2 y V = N y 2 + Nz 2 [ D] = 1 0 0 0 vx 0 1 0 0 vy 0 0 1 0 vz 0 0 0 1
Generating Parallel Projection (2) θ 1 2 Rotating about X: [R] x ; and Rotating about Y: [R] y θ Fully aligning u-v-n with x-y-z Then, rotate Ө 3 about the Z axis to align ū with X and v with Y
Generating Parallel Projection (3) Rotate Ө 3 about the Z axis to align ū with X and v with Y At this point, is given by V x, V y, 0 where V V x V y = R y 0 1 [ ] R x [ ][ Do v,o] ( ) T V x V y V z 1 We need to rotate by an angle Ө 3 about the Z axis L = V x 2 + V y 2, sinθ 3 = V x L, cosθ 3 = V y L [ R z ]= V r L V x L 0 0 V xl V yl 0 0 0 0 1 0 0 0 0 1 Result:
Generating Parallel Projection (4) Drop the n coordinate [ ]=] D n 1 0 0 0 0 1 0 0 0 0 0 0, 0 0 0 1 0 0 u V = D n 0 1 u V 1 [ ] n In summary, to project a view of an object on the UV plane, one needs to transform each point on the object by: [ T ] = [ Dn ][ Rz][ Ry] [ Rx ][ Do, o] v u V P = 0 1 = [ T ]P = T [ ] x y z 1 Note: The inverse transforms are not needed! We don't want to go back to x - y - z coordinates.
Oth Orthographic hi Projection Y Top Front Right X Z Projection planes (Viewing planes) are perpendicular to the principal axes of the MCS of the model The projection direction (viewing direction) coincides with one of the MCS axes
Y Top Front Right X Geometric Transformations for Generating Orthographic Projection (Front View) Z Yv,Y Front Pv = 1 0 0 0 0 1 0 0 P 0 0 0 0 0 0 0 1 Xv, X Drop Z
Y Top Front Right Yv Geometric Transformations for Generating Orthographic Projection (Top View) X Top Xv, X Z Z 1000 1 0 0 0 1 0 0 0 0cos(90) sin(90 0100 ) 0 00 10 P v = P = P 0000 0sin( 90 ) cos(90) 0 00 0 0 0001 0 0 0 1 00 01 Drop Z 90 [ R] x
Y Top Front Right X Yv, Y Geometric Transformations for Generating Oth Orthographic hi Projection (Right View) Right Z Xv Z 1000 cos( 90 ) 0 sin( 90 ) 0 00 1 0 0100 0 1 0 0 01 0 0 P = = v P P 000 0 sin ( 90 ) 0 cos( 90 ) 0 00 0 0 0001 0 0 0 1 00 0 1 Drop Z 90 [ R] y
Rotations Needed for Generating Isometric Projection Y Top Front Right Y Yv Top X Front Right Xv Z Z Zv X 1 0 0 0 cosθ 0 sinθ 0 0cos sin 0 0 1 0 0 P [ ] [ ] v = R φ x R θ yp= φ φ P 0 sinφ cosφ 0 sinθ 0 cosθ 0 0 0 0 1 0 0 0 1
Isometric Projection: Equally foreshorten the three main axes θ = ± 45, φ = ± 35. 26
Other Possible Rotation Paths Rx --> Ry Rz --> Ry(Rx) Rx(Ry) --> Rz r x = ± 45, ry = ± 35. 26 r z = ± 45, r y( ( x ) = ± 54. 74 ry ( x) = ± 45, rz = ANY ANGLE