void init() { output_type = OUPUT_EXE; subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI; lib_path = get_lib_path(); linker.init(); }
int main() { char *fileName = "monkey.wrl"; //Model name int numLayer = 1; //Number of layers used in this application int numInterator = 0; // Transfer the OF data to CybParameters structure CybDataObtainer<cybSurfaceTriTraits> data(numLayer, numInterator); CybViewMono view; //Access the parameters information of scene and graphical objects CybParameters *cybCore = CybParameters::getInstance(); sMesh *mesh = new sMesh[numLayer]; mfReaderModel<cybSurfaceTriTraits> in; in.read(&mesh[0], fileName); data.loadModel(mesh); cout << "loadModel()" << endl; /*Load the model from VRML file (layerID, fileName)*/ //data.loadModel(0, fileName); /*Initialize the meshes parameters*/ data.startParameters(numLayer); //Set the object color (layerID, r, g, b,a) cybCore->setColor(0,1,1,0.7,0.9); //Set the window name view.setWindowName("Simple Visualization"); Provider * provider = new Provider(); CybBayesianNetwork* net = new CybBayesianNetwork(3); CybNetworkIO* netIO = new CybNetworkIO ("/root/Desktop/teste"); Linker* linker = new Linker(net, provider, netIO); linker->init(); /*Initialize visualization*/ view.init(); delete provider; delete net; delete netIO; delete linker; }