Work Of The Week 
This week the loading and saving processes were threaded, in order for the application to not looks like freezing when doing such tasks.
And I started to work on the picking process, thinking of it more precisely and beginning the OpenGL part of the process.
Total worked: 7h hours.
Threading the loading and saving | |
Basically the idea was to change the static classes Loader and Saver to normal object that extend the QThread one. Then some attributes like the file format, the filename and other details were added to the constructor. The QThread class invokes the run method in a new thread, separate from the display one when start is called. That suppresses the freeze looking of the GUI when loading huge files. Finally the MainWindow was adapted to handle such new object, allowing only one loader or saver thread in the application. | Time worked: 2 h 30 |
Picking in OpenGL | |
The basic of the picking process was developed. To resume it briefly the SelectionWidget can now handle two type of original data: a NormalizedMesh and a Selection. The first one is the pointer to the original data, and the second the current part to display. If no selection object is there it means that it is the original mesh. Later on the MeshWidget will catch user clicks to send new vertex identifier to the current SelectionWidget that will update its Selection object. For the moment the Selection class was created, with a full bunch of functions. It is two hash maps of vertices and faces indexes that contains boolean values. If it is true it is in the selection. I also begin to work on the selection process in OpenGL and done most of it. But no signals are sent yet to warn the SelectionWidget of the modifications (such as no vertex index are return due to a little trouble - the mouse coordinate mush be taken from the MeshWidget coordinate and not the overall application). | Time worked: 4 h 30 |
Gantt State
No very big news about the Gantt, unless I will be late again soon as my courseworks are taking me more time than expected.
Information And References
This week I read a little about picking in OpenGL, and the previous published websites were used. Nonetheless I also found some information on the following one: Computing normals to achieve flat and smooth shading
Next Week prevision
Next week work will certainly be null as it is the last week for one of my biggest coursework. It takes much more time than expected (I planned 10h on that work and it almost took me 15h and not half is done).
Aucun commentaire:
Enregistrer un commentaire