Zhuming Bi

Computer Aided Design and Manufacturing


Скачать книгу

(b) After transformation.

      Solution

equation

      Using the given scales along the x, y, z axes, the scaling matrix Eq. (2.6) is given as

equation

      Therefore, the set of vertices of the object after scaling transformation can be found as

equation

      A 3D reflection refers to a transformation of mirroring an object about a specified plane. A reflection transformation matrix can be treated as a special case of a scaling matrix, where the scale of the corresponding axis of the reflected coordinate is set as a negative value of −1. Note that the axis for the reflection is aligned with the normal reflecting or mirroring plane. Therefore, the reflection coordination transformations about YZ, XZ, and XY planes are expressed by [T]RE_YZ, [T]RE_XZ, and [T]RE_XZ, respectively, as follows:

      Example 2.2

equation c02f012

      Determine the reflected objects about the XY, YZ, XZ planes, respectively.

      Solution

      Using Eq. (2.7), the vertices of the reflected objects about the XY, YZ, XZ planes are determined and illustrated in Figure 2.12b to d, respectively. Taking as an example determination of the reflected object about the XY plane,

equation equation

      where [T]RE − XY is given in Eq. (2.7) for the reflected object about the XY plane.

      where [T]SH is the shearing transformation matrix, d, g, i, b, c, f are the shearing factors of y along x, z along x, z along y, x along y, x along z, and y along z, respectively. A shearing is a relative angle deformation between two axes. Therefore, [T]SH has to be symmetric, i.e. b = d, g = c, and i = f. In other words, [T]SH only has three independent variables.

      For a point P in its homogeneous coordinate (x, y, z, 1), Eq. (2.8) is applied to define its new position P′ (x′, y′, z′, 1) as

      Example 2.3

c02f013

      Solution

      Solving Eq. (2.10) gives b = d = c = g = f = i = 0.5.

      Figure 2.13b shows the sheared object whose vertices after shearing are determined as

equation

c02f014