diff --git a/Obj2Tiles.Library/Geometry/MeshT.cs b/Obj2Tiles.Library/Geometry/MeshT.cs
index 97806f3..65182e6 100644
--- a/Obj2Tiles.Library/Geometry/MeshT.cs
+++ b/Obj2Tiles.Library/Geometry/MeshT.cs
@@ -486,8 +486,8 @@ private void BinPackTextures(string targetFolder, int materialIndex, IReadOnlyLi
Debug.WriteLine("Cluster boundary (percentage): " + clusterBoundary);
- var clusterX = (int)Math.Ceiling(clusterBoundary.Left * textureWidth);
- var clusterY = (int)Math.Ceiling(clusterBoundary.Top * textureHeight);
+ var clusterX = (int)Math.Floor(clusterBoundary.Left * textureWidth);
+ var clusterY = (int)Math.Floor(clusterBoundary.Top * textureHeight);
var clusterWidth = (int)Math.Max(Math.Ceiling(clusterBoundary.Width * textureWidth), 1);
var clusterHeight = (int)Math.Max(Math.Ceiling(clusterBoundary.Height * textureHeight), 1);
diff --git a/Obj2Tiles.sln.DotSettings.user b/Obj2Tiles.sln.DotSettings.user
index 8e2a882..4275a41 100644
--- a/Obj2Tiles.sln.DotSettings.user
+++ b/Obj2Tiles.sln.DotSettings.user
@@ -1,10 +1,8 @@
- C:\Users\IT 2\AppData\Local\JetBrains\Rider2022.1\resharper-host\temp\Rider\vAny\CoverageData\_Obj2Tiles.646907580\Snapshot\snapshot.utdcvr
+ VISIBLE_FILES
+
<SessionState ContinuousTestingMode="0" IsActive="True" Name="Session" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
- <Or>
- <Project Location="C:\Users\IT 2\source\repos\Obj2Tiles\Obj2Tiles.Library.Test" Presentation="<Obj2Tiles.Library.Test>" />
- <Project Location="C:\Users\IT 2\source\repos\Obj2Tiles\Obj2Tiles.Test" Presentation="<Obj2Tiles.Test>" />
- </Or>
+ <Project Location="D:\repos\Obj2Tiles\Obj2Tiles.Test" Presentation="<Obj2Tiles.Test>" />
</SessionState>
\ No newline at end of file
diff --git a/Obj2Tiles/Obj2Tiles.csproj b/Obj2Tiles/Obj2Tiles.csproj
index d8ec779..2d75f96 100644
--- a/Obj2Tiles/Obj2Tiles.csproj
+++ b/Obj2Tiles/Obj2Tiles.csproj
@@ -6,8 +6,8 @@
enable
enable
false
- 1.0.10
- 1.0.10
+ 1.0.11
+ 1.0.11
true
diff --git a/Obj2Tiles/Stages/DecimationStage.cs b/Obj2Tiles/Stages/DecimationStage.cs
index 9475904..7e7d40e 100644
--- a/Obj2Tiles/Stages/DecimationStage.cs
+++ b/Obj2Tiles/Stages/DecimationStage.cs
@@ -79,7 +79,7 @@ private static void InternalDecimate(ObjMesh sourceObjMesh, string destPath, flo
var currentTriangleCount = 0;
for (var i = 0; i < sourceSubMeshIndices.Length; i++)
{
- currentTriangleCount += (sourceSubMeshIndices[i].Length / 3);
+ currentTriangleCount += sourceSubMeshIndices[i].Length / 3;
}
var targetTriangleCount = (int)Math.Ceiling(currentTriangleCount * quality);