Skip to content

Commit

Permalink
Readd scene manifest project directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Feb 14, 2024
1 parent 61883bc commit 9e3149c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion DCL_PiXYZ/PXZEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ 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
//If its single, we pass as many scenes as we want to parse separated by ;
//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);
Expand Down
4 changes: 2 additions & 2 deletions DCL_PiXYZ/PXZParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>();
Expand Down

0 comments on commit 9e3149c

Please sign in to comment.