Название: Computer Aided Design and Manufacturing
Автор: Zhuming Bi
Издательство: John Wiley & Sons Limited
Жанр: Техническая литература
isbn: 9781119534242
isbn:
Table 2.1 Coordinate transformation of a point.
Transformation | Features | Illustration | |
Translation | A translation is the simplest transformation and is the translation when the point P (x, y, z) is moved by the vector d(dx, dy, dz) to a new point P′(x′, y′, z′). |
|
|
Scale | In case of scaling, every coordinate value of P (x, y, z) is multiplied by a constant. If the constants are the same along three axes, this corresponds to a uniform scaling (i.e. Cx = Cy = Cz). Otherwise, it is a non‐uniform scaling. |
|
|
Rotation | A rotation refers to the rotation around a specified axis with an angle (i.e. θx, θy, or θz along the x, y, and z axes, respectively). A generic rotation along a specific axis can be decomposed as a series of aforementioned rotations. |
|
|
Mirror | The mirror of an object is defined with respect to a reference plane, i.e. O‐YZ, O‐XZ, and O‐XY planes, respectively. |
|
|
Projection | The transaction for projection computes the coordinates P′(x′, y′, z′) of a point P (x, y, z) projected on a plane with a distance d to the observer. |
|
|
2.2.4 Coordinate Transformation of Objects
A point only includes positional data while an object includes both positional and orientational data in space. In addition, it may be convenient to represent the position and orientation by a local coordinate system (LCS) attached to an object. Figure 2.9 shows such a CS, which is called an object coordinate system (Ob − XbYbZb).
Figure 2.9 Object coordinate system in a world coordinate system.
In Figure 2.9, a reference origin
(2.4)
where [T]4 × 4 is the homogenous matrix for the representation of an object CS {Ob − XbYbZb} in the world coordinate system (Ow − XwYwZw).
Note that the homogenous matrix in Eq. (2.4) includes six independent variables: three for the position and the rest for the orientation.
A homogenous transformation matrix can be generalized to deal with any transformation of objects in a coordinate system. Figure 2.10 shows the generalized matrix of homogeneous transformation. The elements of the matrix in different fields affect the transformation of an object in different ways. For examples, the elements (a, e, j) scale the coordinates of x, y, and z, the elements (p, q, r) translate the coordinates of x, y, and z, and the element s gives an overall inverse scale of the object.
Figure 2.10 Impacts of elements in a generalized homogeneous matrix.
The generic homogeneous matrix [T]G can be customized to implement some common coordinate transformations of an object. For example, the translation matrix [T]TR of an object can be simplified as
(2.5)
where [T]TR is the 3D translation matrix and p, q, r are the translational distances of a point from its original position along the x, y, and z axes, respectively.
The scaling matrix [T]SC of a 3D object can be defined as
(2.6)