Presentation is loading. Please wait.

Presentation is loading. Please wait.

5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate.

Similar presentations


Presentation on theme: "5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate."— Presentation transcript:

1 5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate

2 5.2.1 Translation From position P=(x, y, z) to P ’ (x ’, y ’, z ’ ) Or P ’ =T · P An equivalent representation: x ’ =x +t x y’=y + t y z ’ =z + t z

3 5.2.2 Rotation Designate an axis of rotation and the amount of angular rotation

4 Coordinate-Axes Rotations x' = x cosθ - y sinθ y' = x sinθ + y cosθ z' = z Z-axis rotation equation: Homogeneous coordinate form Or P ’ = Rz(θ) · P

5 a cyclic permutation of the coordinate parameters x, y x → y → z → x x → y → z → x x' = x cosθ - y sinθ y' = x sinθ + y cosθ z' = z Z-axis rotation equation: y' = y cosθ - z sinθ z' = y sinθ + z cosθ x' = x X-axis rotation equation: Or P ’ = Rz(θ) · POr P ’ = Rx(θ) · P

6 y' = y cosθ - z sinθ z' = y sinθ + z cosθ x' = x X-axis rotation equation: z' = z cosθ – x sinθ x' = z sinθ + x cosθ y' = y Y-axis rotation equation: Or P ’ = Ry(θ) · P Or P ’ = Rx(θ) · P

7 General Three-Dimensional Rotations an object is to be rotated about an axis that is parallel to one of the coordinate axes Step 1: Translate the object so that the rotation axis coincides with the parallel coordinate axis.

8 General Three-Dimensional Rotations Step 2: Perform the specified rotation about that axis.

9 General Three-Dimensional Rotations Step 3: Translate the object so that the rotation axis is moved back to its original position.

10 General Three-Dimensional Rotations

11 rotation about an arbitrary axis (five steps) Step 1: Translate the object so that the rotation axis passes through the coordinate origin.

12 rotation about an arbitrary axis (five steps) Step 2:Rotate the object so that the axis of rotation coincides with one of the coordinate axes. Step 3:Perform the specified rotation about that coordinate axis.

13 rotation about an arbitrary axis (five steps) Step 4: Apply inverse rotations to bring the rotation axis back to its original orientation. Step 5: Apply the inverse translation to bring the rotation axis back to its original position.

14 5.2.3 Scaling From position P=(x, y, z) to P ’ (x ’, y ’, z ’ ) Or P ’ =S · P An equivalent representation: x' = x' · sx, y' = y · sy, z' = z · sz

15 Sx=Sy=Sz=2

16 Scaling with respect to a fixed position (xf, yf, zf,) Step 1: Translate the fixed point to the origin. Step 2: Scale the object relative to the coordinate origin. Step 3: Translate the fixed point back to its original position.

17 5.2.4 Other Transformation ---- reflection The matrix representation for this reflection of points relative to the xy plane is

18 5.2.4 Other Transformation The matrix representation for this reflection of points relative to the yz plane is The matrix representation for this reflection of points relative to the zx plane is

19 5.2.4 Other Transformation ---- shear As an example of three- dimensional shearing, the following transformation produces a z-axis shear:

20 a = b = 1

21

22


Download ppt "5.2 Three-Dimensional Geometric and Modeling Transformations 2D3D Consideration for the z coordinate."

Similar presentations


Ads by Google