fixes to cityjson invocation

This commit is contained in:
Thomas Krijnen
2024-02-18 12:00:40 +01:00
parent 49e8f8bdca
commit 4418397d2c
+3 -1
View File
@@ -682,7 +682,7 @@ int main(int argc, char** argv) {
return exit_code;
}
#ifdef IFOPSH_WITH_CGAL
else if ((output_extension == CITY_JSON || output_extension == OBJ || output_extension == DAE || output_extension == GLB) && vmap.count("exterior-only") && exterior_only_algo != "none") {
else if (output_extension == CITY_JSON || (output_extension == OBJ || output_extension == DAE || output_extension == GLB) && vmap.count("exterior-only") && exterior_only_algo != "none") {
// none, convex-decomposition, minkowski-triangles or halfspace-snapping
boost::to_lower(exterior_only_algo);
@@ -695,6 +695,8 @@ int main(int argc, char** argv) {
//
} else if (exterior_only_algo == "convex-decomposition") {
//
} else if (exterior_only_algo == "none") {
//
} else {
cerr_ << "[Error] --exterior-only should be convex-decomposition|minkowski-triangles|halfspace-snapping" << std::endl;
print_usage();