-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
27 lines (21 loc) · 835 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "ControlerFlow.h"
#include <string.h>
int main(int argc, char* argv[])
{
// Load a mesh in OFF format
OpenMesh::ControlerFlow controler;
controler.boundary_mode = OpenMesh::Fixed;
controler.orbifold = false;
controler.flow_type = OpenMesh::EuclideanCalabi;
printf("===========Start======================\n");
std::string fileName = "C:\\Users\\dell\\Desktop\\PolycubeSpaceCode\\PolycubeModels\\airplane1_input.obj";
const char* p = fileName.c_str();
bool result = controler.LoadMeshFromFile(p);
controler.RunFlow();
std::string fileNameSae = "C:\\Users\\dell\\Desktop\\gongxhfile\\project\\CalabiExtract\\result\\enbed\\airplane1_input.obj";
const char* pSave = fileNameSae.c_str();
result = controler.SaveMeshToFile(pSave);
printf("===========End======================\n");
// Plot the mesh
return 0;
}