main.cxx revision 3051a3502f027f3d7bb750a1d7a6b1b43cdd2a86
#include "brep_to_xml.hxx"
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
int main (int argc, char* argv[])
{
char filename[50] = "./test/input.brp";
if (argv[1] != NULL) {
strcpy(filename,argv[1]);
}
if(string(argv[2]) == "rectangle")
{
BrepToXML btx;
btx.read_brep(filename);
btx.build_graph();
string s;
const string a = "rectangle";
btx.build_xml(a, s);
cout <<s;
}
return 0;
}