Monday, July 13, 2009

Translation


Added two new toolbars at NaroCad: the 3D primitives toolbar (sphere, box, cylinder, cone) and the transformations toolbar (translate).

Implemented the translation operation in 3 clicks: the first click is used to select the object to translate, the second one to choose the reference point and the third click to show the destination point. Between clicks at mouse move some helper line is drawn to show the distance for the translation. Added a screenshot with the 3 initial rectangles translated.

Finished the sphere implementation by adding realtime drawing (a temporary sphere is drawn at mouse move until click). Added also a sphere descriptor so that the sphere radius can be changed from the property grid. The sphere center will have to be added in the property grid.

No comments: