Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HeDo88TH committed Apr 3, 2023
1 parent 0d7978e commit 4a29206
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Obj2Tiles.Library/Geometry/MeshT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ private double GetTextureArea(IReadOnlyList<int> facesIndexes)
private static List<List<int>> GetFacesClusters(IEnumerable<int> facesIndexes,
IReadOnlyDictionary<int, List<int>> facesMapper)
{
Debug.Assert(facesIndexes.Any(), "No faces in this cluster");

var clusters = new List<List<int>>();
var remainingFacesIndexes = new List<int>(facesIndexes);
Expand All @@ -724,7 +723,6 @@ private static List<List<int>> GetFacesClusters(IEnumerable<int> facesIndexes,
for (var i = 0; i < connectedFaces.Count; i++)
{
var connectedFace = connectedFaces[i];
//if (currentCluster.Contains(connectedFace)) continue;
if (currentClusterCache.Contains(connectedFace)) continue;

currentCluster.Add(connectedFace);
Expand All @@ -739,8 +737,6 @@ private static List<List<int>> GetFacesClusters(IEnumerable<int> facesIndexes,
// Add the cluster
clusters.Add(currentCluster);

Debug.WriteLine("Added cluster with " + currentCluster.Count + " faces.");
Debug.WriteLine("Remaining faces count: " + remainingFacesIndexes.Count + "");
// If no more faces, exit
if (remainingFacesIndexes.Count == 0) break;

Expand Down

0 comments on commit 4a29206

Please sign in to comment.