Skip to content
Snippets Groups Projects
Commit a2dcea16 authored by Arne Graf's avatar Arne Graf
Browse files

disabled debug vtk/Matrix

parent 5b205759
No related branches found
No related tags found
2 merge requests!26Develop,!17FloorfieldRouter: Inside/Outside and Subroom Recognition. Calculation only inside of rooms
Pipeline #
......@@ -322,21 +322,21 @@ bool FFRouter::Init(Building* building)
}
}
std::ofstream matrixfile;
matrixfile.open("Matrix.txt");
for (auto mapItem : _distMatrix) {
matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first];
matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t";
matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl;
// auto sub = _subroomMatrix.at(mapItem.first);
// if (sub) {
// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl;
// } else {
// matrixfile << std::string("\tSubroom is nullptr") << std::endl;
// }
}
matrixfile.close();
// std::ofstream matrixfile;
// matrixfile.open("Matrix.txt");
//
// for (auto mapItem : _distMatrix) {
// matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first];
// matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t";
// matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl;
//// auto sub = _subroomMatrix.at(mapItem.first);
//// if (sub) {
//// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl;
//// } else {
//// matrixfile << std::string("\tSubroom is nullptr") << std::endl;
//// }
// }
// matrixfile.close();
Log->Write("INFO: \tFF Router Init done.");
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment