Load Mesh file to C++
Hi How can i load Mesh file from Gambit to C++ ? with all Node,Element,Boundary !!!
|
Re: Load Mesh file to C++
save the mesh file in text format (in Gambit it is called nuetral format)
|
Re: Load Mesh file to C++
I know that, but my problem is: how can i read that with C++?? with what operation,function & how ???
|
Re: Load Mesh file to C++
You can use the C++ input stream cin or the usual C-functions.
|
Re: Load Mesh file to C++
can u explain it more ? i read it like this (C++): fstream infile("Grid.txt");
and after that i use two 'for' loop for X&y, but it didn't work !!! |
Re: Load Mesh file to C++
Try
ifstream infile("Grid.txt"); infile >> x; infile >> y; // etc. |
Re: Load Mesh file to C++
i found it but iused with
FILE* f; f=fopen("filename"; scanf(f,"r"); it's read one line ... |
All times are GMT -4. The time now is 00:29. |