Commit 70f1319f authored by VIEVILLE Thierry's avatar VIEVILLE Thierry
Browse files

sync from makefile

parent b2650a25
Pipeline #694882 passed with stage
in 2 seconds
......@@ -43,12 +43,23 @@ int main2()
// Close file
toto_file.close();
titi_file.close();
// @vthierry : le debut est du uper code C++ impeccable mai spour les paresseux il y a aussi dans os routines
/*
wjson::Value
titi(aidesys::load("./src/VisualMorphing/titi.json"), true),
toto(aidesys::load("./src/VisualMorphing/toto.json"), true);
*/
// @vthierry : Ici il faut definir tous les types
// @vthierry : @style ... @cx dire que c est des nuemrics ... @transform au pire dire que c est des strings
// Create organ type (basic geometrical elements, mostly circles)
symboling::RecordType organ(
"{name: organ, required: [type]}"
);
// Create face type as a SetType
// @vthierry : Ici je mets List au lieu de Set c est FAUX mais ca permte que ca passe a remettre en SetType
symboling::ListType face(
"{name: face, itemType: organ, deleteCost: 10}"
);
......@@ -64,7 +75,7 @@ int main2()
std::cout << "Distance between Titi and Toto : " << distance;
std::cout << "Path between Titi and Toto : " << face.getPath(titi, toto).asString(true);
// Just to test why two values as seen as indistinguishable
// @vthierry : Just to test why two values as seen as indistinguishable because inner types are dont defined
std::cout << "Distance between Titi[0] and Titi[1] :" << face.getDistance(titi.at(0), titi.at(1));
std::cout << "Path between Titi[0] and Titi[1] :" << face.getPath(titi.at(0), titi.at(1)).asString(true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment