Skip to content

Commit 08be6f4

Browse files
committed
Fix - GetVoronoiEdges
Fix - GetVoronoiEdges start and endpoint assignment
1 parent 50d7622 commit 08be6f4

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,11 @@ crashlytics-build.properties
6868

6969
# Temporary auto-generated Android Assets
7070
/[Aa]ssets/[Ss]treamingAssets/aa.meta
71-
/[Aa]ssets/[Ss]treamingAssets/aa/*
71+
/[Aa]ssets/[Ss]treamingAssets/aa/*
72+
73+
/[Pp]ackages/
74+
/DelaunatorSharp/bin
75+
/DelaunatorSharp/obj
76+
/DelaunatorSharp.WPF/bin
77+
/DelaunatorSharp.WPF/obj
78+
/DelaunatorSharp.Benchmark/obj
1.5 KB
Binary file not shown.

DelaunatorSharp/Delaunator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public IEnumerable<IEdge> GetVoronoiEdges(Func<int, IPoint> triangleVerticeSelec
544544
if (e < Halfedges[e])
545545
{
546546
var p = triangleVerticeSelector(TriangleOfEdge(e));
547-
var q = triangleVerticeSelector(TriangleOfEdge(e));
547+
var q = triangleVerticeSelector(TriangleOfEdge(Halfedges[e]));
548548
yield return new Edge(e, p, q);
549549
}
550550
}

DelaunatorSharp/DelaunatorSharp.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Port from Mapbox's Delaunator project (JavaScript).</Description>
1212
<PackageTags>delaunay triangulation voronoi</PackageTags>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1414
<Copyright>https://github.com/mapbox/delaunator</Copyright>
15-
<Version>1.0.5</Version>
16-
<PackageReleaseNotes>Fix - GetTriangleCenter calls GetCentroid instead of GetCircumcenter.
17-
</PackageReleaseNotes>
15+
<Version>1.0.6</Version>
16+
<PackageReleaseNotes>Fix - GetVoronoiEdges start and endpoint assignment</PackageReleaseNotes>
1817
<AssemblyName>DelaunatorSharp</AssemblyName>
1918
<RootNamespace>DelaunatorSharp</RootNamespace>
2019
<PackageId>Delaunator</PackageId>

0 commit comments

Comments
 (0)