2015-09-02 18:07:17 +08:00
|
|
|
#include "../../src/gmio_stl/stl_io.h"
|
|
|
|
#include "../../src/gmio_support/stl_occ.h"
|
|
|
|
#include "../../src/gmio_support/stream_qt.h"
|
2015-09-21 21:58:44 +08:00
|
|
|
#include "../../src/gmio_support/stream_cpp.h"
|
2015-09-02 18:07:17 +08:00
|
|
|
|
2015-09-21 21:58:44 +08:00
|
|
|
#include <QtCore/QFile>
|
2015-09-09 16:54:45 +08:00
|
|
|
#include <Handle_StlMesh_Mesh.hxx>
|
2015-09-21 04:58:56 +08:00
|
|
|
#include <fstream>
|
|
|
|
|
2015-09-02 18:07:17 +08:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
// OpenCascade
|
|
|
|
Handle_StlMesh_Mesh stlMesh;
|
2015-09-09 16:54:45 +08:00
|
|
|
gmio_stl_hnd_occmesh_creator(stlMesh);
|
2015-09-02 18:07:17 +08:00
|
|
|
|
|
|
|
// Qt
|
|
|
|
QFile file;
|
|
|
|
gmio_stream_qiodevice(&file);
|
|
|
|
|
2015-09-21 04:58:56 +08:00
|
|
|
// C++
|
2015-09-21 21:58:44 +08:00
|
|
|
std::ifstream is("test.txt");
|
|
|
|
gmio_istream_cpp(&is);
|
|
|
|
std::ofstream os("test.txt");
|
|
|
|
gmio_ostream_cpp(&os);
|
2015-09-21 04:58:56 +08:00
|
|
|
|
2015-09-02 18:07:17 +08:00
|
|
|
return 0;
|
|
|
|
}
|