diff --git a/apps/roofer-app/reconstruct_building.hpp b/apps/roofer-app/reconstruct_building.hpp index 2a0c7584..9c3991c6 100644 --- a/apps/roofer-app/reconstruct_building.hpp +++ b/apps/roofer-app/reconstruct_building.hpp @@ -90,8 +90,10 @@ std::unordered_map extrude( .h_70p = rfcfg->n["h_roof_70p"], .h_min = rfcfg->n["h_roof_min"], .h_max = rfcfg->n["h_roof_max"]}); - MeshPropertyCalculator->compute_roof_orientation( - mesh, {.slope = rfcfg->n["slope"], .azimuth = rfcfg->n["azimuth"]}); + if (lod == LOD22) { + MeshPropertyCalculator->compute_roof_orientation( + mesh, {.slope = rfcfg->n["slope"], .azimuth = rfcfg->n["azimuth"]}); + } } auto MeshTriangulator = diff --git a/include/roofer/reconstruction/PlaneDetector.hpp b/include/roofer/reconstruction/PlaneDetector.hpp index 49e0e6d7..10678baf 100644 --- a/include/roofer/reconstruction/PlaneDetector.hpp +++ b/include/roofer/reconstruction/PlaneDetector.hpp @@ -34,7 +34,7 @@ namespace roofer::reconstruction { int metrics_plane_min_points = 20; float metrics_plane_epsilon = 0.2; float metrics_plane_normal_threshold = 0.75; - float metrics_is_horizontal_threshold = 0.97; + float metrics_is_horizontal_threshold = 0.995; float metrics_probability_ransac = 0.05; float metrics_cluster_epsilon_ransac = 0.3; float metrics_is_wall_threshold = 0.3;