NetDEM v1.0
Loading...
Searching...
No Matches
polybezier_model_main.cpp

This is an example of how to use the netdem library.

#include <iostream>
#include <string>
using namespace std;
void RandomGeneration(int argc, char **argv);
void EvaluateMorphology(int argc, char **argv);
void SimplifyCobble(int argc, char **argv);
void DemoNormalPatches(int argc, char **argv);
void AveNumLinkedPatches(int argc, char **argv);
void RandomPacking(int argc, char **argv);
void VoronoiPacking(int argc, char **argv);
int main(int argc, char **argv) {
if (argc <= 1) {
cout << "please specify the id of the task. \n"
<< "e.g.: netdem_example_polybezier_model i" << endl;
cout << ">> 01: RandomGeneration" << endl;
cout << ">> 02: EvaluateMorphology" << endl;
cout << ">> 03: SimplifyCobble" << endl;
cout << ">> 04: DemoNormalPatches" << endl;
cout << ">> 05: AveNumLinkedPatches" << endl;
cout << ">> 80: RandomPacking" << endl;
cout << ">> 81: VoronoiPacking" << endl;
return -1;
}
int id = atof(argv[1]);
switch (id) {
case 1:
RandomGeneration(argc, argv);
break;
case 2:
EvaluateMorphology(argc, argv);
break;
case 3:
SimplifyCobble(argc, argv);
break;
case 4:
DemoNormalPatches(argc, argv);
break;
case 5:
AveNumLinkedPatches(argc, argv);
break;
case 80:
RandomPacking(argc, argv);
break;
case 81:
VoronoiPacking(argc, argv);
break;
default:
break;
}
return 0;
}
int main(int argc, char *argv[])
Definition main.cpp:18