2009-06-07 18:38:59 UTC
After looking through things a bit more, I've come to the conclusion that i'd like to work more closely on the library, leaving the GUI for now. Making a new GUI would of course not remove the old one either.
I'll try to locate the segfault more closely. Right now i can give you the relevant output is
*** glibc detected *** ./netgen: free(): invalid pointer: 0x00000000020e3d90 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fdbeaf12118]
/lib/libc.so.6(cfree+0x76)[0x7fdbeaf13c56]
./netgen(_ZN6netgen4Mesh10DeleteMeshEv+0x167)[0x630ed7]
./netgen(_ZN6netgen12GenerateMeshERNS_10CSGeometryERPNS_4MeshEiiPKc+0x337)[0x4e6347]
./netgen(_ZN6netgen12MeshingDummyEPv+0x3c4)[0x484974]
/lib/libpthread.so.0[0x7fdbeb9a6faa]
/lib/libc.so.6(clone+0x6d)[0x7fdbeaf6e29d]
which occurs when i mesh anything. Loading a geometry is fine, rotating it is increadible slow (less than 1fps), but it doesn't crash.
(My machine is a quad core intel with GMA graphics, direct rendering is working and no other OpenGL applications are slow).
I'll do some deeper debugging as soon as i have time.
As for the parallel mesh, i simply configured and built 4.9.9. (with --enable-parallel)
I'm not sure on the details here, but the class Segment simply doesn't have the instance variables p1 and p2 anymore.
Line 784 in meshtype.hpp clearly indicates that those three variables have been merged into a list.
I've tried nglib a bit, but as far as i can tell, the meshing parameters are completely ignored. I have not managed to make ng_vol or ng_stl create anything but the coarsest possible mesh.
What i've also noticed is that not nearly all the functionality of netgen is available in nglib. I noticed that version 4.5 in Debian made libraries for each module in libsrc, perhaps I should be using them directly, and nglib can be seen as a simple, more easily used library for the basic meshing needs?
I also have some corrections regarding the build system, but i'll make a seperate thread (or bug report) for that so we can keep things structured.
/ Mikael