diff --git a/DCL_PiXYZ/PXZEntryPoint.cs b/DCL_PiXYZ/PXZEntryPoint.cs index e9c88d87..fe8751bd 100644 --- a/DCL_PiXYZ/PXZEntryPoint.cs +++ b/DCL_PiXYZ/PXZEntryPoint.cs @@ -23,10 +23,12 @@ private static async Task RunLODBuilder(string[] args) { string defaultScene = "0,10"; string defaultOutputPath = Path.Combine(Directory.GetCurrentDirectory(), "built-lods") ; + string defaultSceneLodManifestDirectory = Path.Combine(Directory.GetCurrentDirectory(), "scene-lod-entities-manifest-builder/"); if (args.Length > 0) { defaultScene = args[1]; defaultOutputPath = args[2]; + defaultSceneLodManifestDirectory = args[3]; } //Conversion type can be single or bulk @@ -34,7 +36,7 @@ private static async Task RunLODBuilder(string[] args) //If its bulk, a single number will represent a square to parse, going from -value to value //Scenes param is single coordinates or bulk value. Single scenes are separated by - var sceneConversionInfo = new SceneConversionInfo("7000;3000;1000", "triangle", "coords", "single", defaultScene, defaultOutputPath); + var sceneConversionInfo = new SceneConversionInfo("7000", "triangle", "coords", "single", defaultScene, defaultOutputPath, defaultSceneLodManifestDirectory); var debugInfo = new SceneConversionDebugInfo(defaultOutputPath, "SuccessScenes.txt", "FailScenes.txt", "EmptyScenes.txt", "PolygonCount.txt" , false); CreateDirectories(sceneConversionInfo); diff --git a/DCL_PiXYZ/PXZParams.cs b/DCL_PiXYZ/PXZParams.cs index b88ef044..c9c4c276 100644 --- a/DCL_PiXYZ/PXZParams.cs +++ b/DCL_PiXYZ/PXZParams.cs @@ -38,14 +38,14 @@ public struct SceneConversionInfo public WebRequestsHandler WebRequestsHandler; - public SceneConversionInfo(string decimationValues, string decimationType, string sceneType, string conversionType, string scenes, string outputPath) + public SceneConversionInfo(string decimationValues, string decimationType, string sceneType, string conversionType, string scenes, string outputPath, string defaultSceneLodManifestDirectory) { SceneType = sceneType; ConversionType = conversionType; Scenes = scenes; DecimationType = decimationType; DecimationValues = decimationValues; - SceneManifestDirectory = Path.Combine(Directory.GetCurrentDirectory(), "scene-lod-entities-manifest-builder/"); + SceneManifestDirectory = defaultSceneLodManifestDirectory; ManifestOutputJsonDirectory = Path.Combine(SceneManifestDirectory, "output-manifests/"); OutputDirectory = outputPath; ScenesToAnalyze = new List();