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

Commit

Permalink
Merge pull request #15 from Amsterdam/fix/infinite-simplification-due…
Browse files Browse the repository at this point in the history
…-to-spikes

Clipping now happens before simplification
  • Loading branch information
TomSimons authored Sep 12, 2023
2 parents 12e6fc3 + 8d179dc commit 4696146
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions TileBakeLibrary/CityJSONToTileConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,12 @@ private List<SubObject> CityJSONParseProcess(CityJSON cityJson)
}
WriteParsingStatusToConsole(skipped, done, parsing, simplifying, tiling);
if (subObject.maxVerticesPerSquareMeter > 0)
if (clipSpikes)
{
subObject.ClipSpikes(spikeCeiling, spikeFloor);
}
if (subObject.maxVerticesPerSquareMeter > 0)
{
Interlocked.Increment(ref simplifying);
WriteParsingStatusToConsole(skipped, done, parsing, simplifying, tiling);
Expand All @@ -479,10 +484,6 @@ private List<SubObject> CityJSONParseProcess(CityJSON cityJson)
//Always merge based on VertexNormalCombination.normalAngleComparisonThreshold
subObject.MergeSimilarVertices();
}
if (clipSpikes)
{
subObject.ClipSpikes(spikeCeiling, spikeFloor);
}
if (TilingMethod == "TILED")
{
Expand Down

0 comments on commit 4696146

Please sign in to comment.