当对象绕着不平行于任何一个坐标轴的轴旋转时, 即x, y, z。然后, 需要进行其他转换。首先, 需要对齐, 然后将对象恢复到原始位置。需要执行以下步骤
- 将对象转换为原点
- 旋转对象, 使对象的轴与任何坐标轴重合。
- 围绕要重合的坐标轴进行旋转。
- 反向应用旋转, 使旋转回到原始位置。 Matrix for representing three-dimensional rotations about the Z axis Matrix for representing three-dimensional rotations about the X axis Matrix for representing three-dimensional rotations about the Y axis Following figure show the original position of object and position of object after rotation about the x-axis
5. Apply inverse translation to bring rotation axis to the original position.
For such transformations, composite transformations are required. All the above steps are applied on points P’ and P” .Each step is explained using a separate figure.
Step1: Initial position of P’ and P” is shown
Step2: Translate object P’ to origin
Step3: Rotate P” to z axis so that it aligns along the z-axis
Step4: Rotate about around z- axis
Step5: Rotate axis to the original position
【计算机图形(绕任意轴旋转)】Step6: Translate axis to the original position.
Next Topic Inverse Transformations
← prev next →
推荐阅读
- 计算机图形(3D缩放)
- 计算机图形(3D旋转)
- 计算机图形(3D反射)
- 计算机图形(3D建模系统)
- 计算机图形(3D逆变换)
- 计算机图形(三维图形)
- 计算机图形齐次坐标
- 计算机图形(剪切操作)
- 计算机图形(反射操作)