Closed schroedtert closed 4 years ago
When trying to run demos/07_big_room/big_room_ini.xml the following error occurs:
demos/07_big_room/big_room_ini.xml
[2020-03-23 10:31:50.128] [info] Init Geometry [2020-03-23 10:31:50.128] [info] Starting geometry::helper::correct to fix the geometry ... [2020-03-23 10:31:50.130] [info] File saved to /home/tobiass/jupedsim/jpscore/demos/07_big_room/results/correct_big_room_geo.xml [2020-03-23 10:31:50.130] [info] Geometry was fixed, new file is stored in: /home/tobiass/jupedsim/jpscore/demos/07_big_room/results/correct_big_room_geo.xml. [2020-03-23 10:31:50.130] [error] NormalSubRoom::ConvertLineToPoly(): SubRoom 2 Room 0, polygon not closed (19.2699, 45.165) != (73.27, 3.775), distance = 68.03780493233155 [2020-03-23 10:31:50.130] [error] Could not initialize the geometry! Process finished with exit code 1
When commenting out the correction in Building.cpp:292ff everything works perfektly.
Building.cpp:292ff
// try { // geometry::helper::CorrectInputGeometry(*this); // } catch(const std::exception & e) { // LOG_ERROR("Exception in Building::correct: {}", e.what()); // return false; // }
Not an issue of correctGeometry, coordinates had mistakes. Fixed with #757
correctGeometry
When trying to run
demos/07_big_room/big_room_ini.xml
the following error occurs:When commenting out the correction in
Building.cpp:292ff
everything works perfektly.