Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
removed IsNan check. seems to work without it.
Browse files Browse the repository at this point in the history
  • Loading branch information
sambaas committed Jan 4, 2022
1 parent b6d94f9 commit 8164950
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions TileBakeLibrary/CityJSONToTileConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ private void TileSubobjects()
Console.WriteLine("Found cityObject with no geometry");
}

if(Double.IsNaN(tileX) || Double.IsNaN(tileY)){
Console.WriteLine($"Could not calculate CityObject centroid ({cityObject.centroid}) and target tile. Skipping {cityObject.id}");
continue;
}

Vector2Double tileposition;
bool found = false;
for (int i = 0; i < tiles.Count; i++)
Expand Down

0 comments on commit 8164950

Please sign in to comment.