Skip to content

Commit

Permalink
Merge pull request #21 from kgdev/patch-1
Browse files Browse the repository at this point in the history
Update Mesh.cs
  • Loading branch information
HeDo88TH authored Sep 12, 2022
2 parents 6d38c63 + 7e3b312 commit b424625
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Obj2Tiles.Library/Geometry/Mesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ public Box3 Bounds
minY = minY < v.Y ? minY : v.Y;
minZ = minZ < v.Z ? minZ : v.Z;

maxX = v.X > maxX ? maxX : v.X;
maxY = v.Y > maxY ? maxY : v.Y;
maxZ = v.Z > maxZ ? maxZ : v.Z;
maxX = v.X < maxX ? maxX : v.X;
maxY = v.Y < maxY ? maxY : v.Y;
maxZ = v.Z < maxZ ? maxZ : v.Z;
}

return new Box3(minX, minY, minZ, maxX, maxY, maxZ);
Expand Down Expand Up @@ -352,4 +352,4 @@ private void RemoveUnusedVertices()
#endregion


}
}

0 comments on commit b424625

Please sign in to comment.