Skip to content

Commit 08a090b

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 6b96a41 + 8b82be0 commit 08a090b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

LibTessDotNet/Sources/Geom.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ public static float Interpolate(float a, float x, float b, float y)
198198
: (y + (x-y) * (b/(a+b))));
199199
}
200200

201-
static void Swap<T>(ref T a, ref T b)
201+
static void Swap(ref MeshUtils.Vertex a, ref MeshUtils.Vertex b)
202202
{
203-
T tmp = a;
203+
var tmp = a;
204204
a = b;
205205
b = tmp;
206206
}

LibTessDotNet/Sources/PriorityQueue.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ class StackItem
6565
{
6666
internal int p, r;
6767
};
68-
void Swap<T>(ref T a, ref T b)
68+
69+
static void Swap(ref int a, ref int b)
6970
{
70-
T tmp = a;
71+
int tmp = a;
7172
a = b;
7273
b = tmp;
7374
}

LibTessDotNet/Sources/Tess.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,9 @@ private void OutputContours()
567567
vertCount = 0;
568568
start = edge = f._anEdge;
569569
do {
570-
_vertices[vertIndex++].Position = edge._Org._coords;
571-
_vertices[vertIndex++].Data = edge._Org._data;
570+
_vertices[vertIndex].Position = edge._Org._coords;
571+
_vertices[vertIndex].Data = edge._Org._data;
572+
++vertIndex;
572573
++vertCount;
573574
edge = edge._Lnext;
574575
} while (edge != start);

0 commit comments

Comments
 (0)