Saturday, October 21, 2006

Damn CAD module...

Yeah... It's project time again... A lot happened lately that makes me moody in doing my master project, but no matter what, I need to continue on (maybe the progress will be slow, as now).

Anyway, I'm still working on the CAD module for my project. Export my medical model doesn't seems to got problem, although got some slight slowness due to one of the process during export. Anyhow, I'm having problem to import CAD files into my application, or to be exact, I can't get the CAD files to show in my Qt Widget GUI.

Well, I'm using Trolltech's QT (http://www.trolltech.com/products/qt) GUI library to handle my GUI components. To be honest, at first I was quite scare in using Qt (Afterall, it's not quite widely used for windows applications) Anyway, after reading tutorials, documentation (yeah, their documentation is good) and example, I found myself working comfortably with Qt. In fact, my DICOM module was build entirely atop qt framework (but it's not Qt's plugin). On the other hand, since CAD module will be difficult, I had to join Open Design Alliance (http://www.opendesign.com/) in order to use their CAD library. Their modules (DirectDWG) are good, providing some simplicity for applications to read/write CAD files. However, since DirectDWG does not natively support Qt in vectorization process (process of showing CAD files graphically), I'm on my own to write custome modules.

So far, I manage to do some extra work to somehow use OpenGL to draw the CAD objects on QtGLWidget. Well, although the end result seems nice, but it doesn't fully ultilise the DirectDWG vectorization framework. Hmm... I manage to think some new ideas to try out, and if those can't work, then I think I'll had to stick with the useful ones.

No comments: