Skip to content

Commit

Permalink
type of outlines, better console output lods
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt committed Oct 25, 2023
1 parent b21d732 commit d077820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pg2b3dm/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Options
public string BoundingVolumeHeights { get; set; }

[Option("add_outlines", Required = false, Default = false, HelpText = "Add outlines (Cesium)", SetName = "Cesium")]
public bool AddOutlines { get; set; }
public bool? AddOutlines { get; set; }

// mapbox specific options
[Option("min_zoom", Required = false, Default = 15, HelpText = "Minimum zoom level (Mapbox)", SetName = "Mapbox")]
Expand Down
4 changes: 2 additions & 2 deletions src/pg2b3dm/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static void Main(string[] args)
if (lods.Count >= geometricErrors.Length) {
Console.WriteLine($"Calculating geometric errors starting from {geometricErrors[0]}");
geometricErrors = GeometricErrorCalculator.GetGeometricErrors(geometricErrors[0], lods);
Console.WriteLine($"Calculated geometric errors (for {lods.Count} levels): {geometricErrors}");
Console.WriteLine($"Calculated geometric errors (for {lods.Count} levels): {String.Join(',',geometricErrors)}");
}
};

Expand Down Expand Up @@ -204,7 +204,7 @@ static void Main(string[] args)
}
else {
var refine = lodcolumn != String.Empty ? "REPLACE" : "ADD";
var json = TreeSerializer.ToJson(tiles, translation, rootBoundingVolumeRegion, geometricErrors, heights.min, heights.max, version);
var json = TreeSerializer.ToJson(tiles, translation, rootBoundingVolumeRegion, geometricErrors, heights.min, heights.max, version, refine);
File.WriteAllText($"{o.Output}{Path.AltDirectorySeparatorChar}tileset.json", json);
}
// end cesium specific code
Expand Down

0 comments on commit d077820

Please sign in to comment.