We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39348e commit f77c87bCopy full SHA for f77c87b
1 file changed
PotreeConverter/src/main.cpp
@@ -11,7 +11,7 @@
11
#include "PotreeException.h"
12
13
#include "arguments.hpp"
14
-#include <experimental/filesystem>
+#include <filesystem>
15
16
namespace fs = std::experimental::filesystem;
17
@@ -237,7 +237,12 @@ PotreeArguments parseArguments(int argc, char **argv){
237
238
// set default parameters
239
fs::path pSource(a.source[0]);
240
- a.outdir = args.has("outdir") ? args.get("outdir").as<string>() : pSource.generic_string() + "_converted";
+ if (args.has("outdir")) {
241
+ a.outdir = args.get("outdir").as<string>();
242
+ } else {
243
+ string name = fs::canonical(pSource).filename().string();
244
+ a.outdir = name + "_converted";
245
+ }
246
247
if (a.diagonalFraction != 0) {
248
a.spacing = 0;
0 commit comments