Skip to content
Snippets Groups Projects
Commit 2342d6bb authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

Default testing environment... just main.cpp changes.

parent 5b243b4d
No related branches found
No related tags found
No related merge requests found
...@@ -17,12 +17,11 @@ int main(void) ...@@ -17,12 +17,11 @@ int main(void)
{ {
ParamsSetup(); ParamsSetup();
/*
//SURFACE FITTING: //SURFACE FITTING:
//char filename[]="../sample_input/samplecell.stl"; //char filename[]="../sample_input/samplecell.stl";
//char filename[]="../sample_input/torus_100_30.stl"; char filename[]="../sample_input/torus_100_30.stl";
char filename[]="../sample_input/sphere.stl"; //char filename[]="../sample_input/sphere.stl";
int retval=mesh.ImportSTL(filename); int retval=mesh.ImportSTL(filename);
if (retval) if (retval)
...@@ -38,12 +37,15 @@ int main(void) ...@@ -38,12 +37,15 @@ int main(void)
mesh.CenterMesh(params.sceneCentre); mesh.CenterMesh(params.sceneCentre);
//std::cout << "export retval=" << mesh.ExportSTL("/home/ulman/DATA/test.stl") << "\n";
/*
//work with mesh //work with mesh
float surf_coeff[10]; float surf_coeff[10];
mesh.CalcQuadricSurface_Taubin(10,surf_coeff); mesh.CalcQuadricSurface_Taubin(10,surf_coeff);
*/ */
/*
//ISBI: //ISBI:
//for (int i=0; i < 50; ++i) //for (int i=0; i < 50; ++i)
for (int i=10; i < 11; ++i) for (int i=10; i < 11; ++i)
...@@ -51,12 +53,11 @@ int main(void) ...@@ -51,12 +53,11 @@ int main(void)
LoadNewMesh(i); LoadNewMesh(i);
RenderMesh(i); RenderMesh(i);
} }
*/
/*
initializeGL(); initializeGL();
loopGL(); loopGL();
closeGL(); closeGL();
*/
return(0); return(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment