CONTROL (Rotate the cube parallel to the axis X) KG
Sold 0
Refunds 0
Good feedbacks 0
Bad feedbacks 0
Verification work on the subject: Computer Graphics
-------------------------------------------------- --------------------
Task:
Rotate the cube. The cube is rotated about an axis passing through the centers of the upper faces and parallel to the axis X. The rotation simulated output image cube in different positions, different from each other at a small angle of rotation. Use composition matrix T, Rx, T-1, where T - transport matrix cube center at the origin, Rx - matrix of rotation around axis X, T-1 - moving the center of the cube to the original position.
Recommendations:
The body is a set of segments. The rotation of the body is realized by multiplying the homogeneous coordinates of its vertices on the transfer matrix composition and rotation. After that, go to the specific coordinate system and produce projection. Projection coordinates are transformed into screen coordinates, and the image is displayed. Projecting done by multiplying the vector coordinate all segments in the projection matrix. The calculated coordinates are transformed into screen coordinates xa, ya. Include in the program types Vector, Matrix and procedures for matrix multiplication of the vector and matrix-matrix. Redraw produce handler onTimer. To display the image use the methods MoveTo, LineTo and other class Canvas.
The algorithm output images:
1. Shaded current image with the background color.
2. Turn the object.
3. Print the image of the object.
-------------------------------------------------- --------------------
The program is implemented in the Delphi programming environment with a window
interface. Ready-control work in the archive control
there are sources (Delphi 7) with detailed comments.
Evaluation of the teacher posed: Excellent.
-------------------------------------------------- --------------------
PS Use this job as teaching material, an example of which you
You are able to develop and deliver its program of work the teacher perfectly.
-------------------------------------------------- --------------------
Task:
Rotate the cube. The cube is rotated about an axis passing through the centers of the upper faces and parallel to the axis X. The rotation simulated output image cube in different positions, different from each other at a small angle of rotation. Use composition matrix T, Rx, T-1, where T - transport matrix cube center at the origin, Rx - matrix of rotation around axis X, T-1 - moving the center of the cube to the original position.
Recommendations:
The body is a set of segments. The rotation of the body is realized by multiplying the homogeneous coordinates of its vertices on the transfer matrix composition and rotation. After that, go to the specific coordinate system and produce projection. Projection coordinates are transformed into screen coordinates, and the image is displayed. Projecting done by multiplying the vector coordinate all segments in the projection matrix. The calculated coordinates are transformed into screen coordinates xa, ya. Include in the program types Vector, Matrix and procedures for matrix multiplication of the vector and matrix-matrix. Redraw produce handler onTimer. To display the image use the methods MoveTo, LineTo and other class Canvas.
The algorithm output images:
1. Shaded current image with the background color.
2. Turn the object.
3. Print the image of the object.
-------------------------------------------------- --------------------
The program is implemented in the Delphi programming environment with a window
interface. Ready-control work in the archive control
there are sources (Delphi 7) with detailed comments.
Evaluation of the teacher posed: Excellent.
-------------------------------------------------- --------------------
PS Use this job as teaching material, an example of which you
You are able to develop and deliver its program of work the teacher perfectly.
I ask you to leave your positive feedback, thank you.