Skip to content

Commit

Permalink
to release 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt committed Feb 14, 2024
1 parent 00cd9b5 commit 23fc7a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ wkx-sharp - https://github.com/cschwarz/wkx-sharp for handling geometries

## History

2024-02-14: release 1.4.1: make tubularSegments and radialSegments optional

2024-02-14: release 1.4.0: add support for lines

2024-02-07: release 1.3.1: normals algorithm fix for higher precision
Expand Down
2 changes: 1 addition & 1 deletion src/triangulator.tests/TriangulateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void TriangulateLine()
var wkt = "LINESTRING(-10 0 0,0 0 0,0 10 0)";
var line = (LineString)Geometry.Deserialize<WktSerializer>(wkt);

var triangles = Triangulator.Triangulate(line,2, 60, 8);
var triangles = Triangulator.Triangulate(line,2, 60);

GltfCreator.CreateGltf(triangles, @"lines.gltf");
}
Expand Down
2 changes: 1 addition & 1 deletion src/triangulator/Triangulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static byte[] Triangulate(byte[] wkb)
return result.AsBinary();
}

public static MultiPolygon Triangulate(LineString lineString, float radius = 1, int tubularSegments = 64, int radialSegments = 8, bool closed = false)
public static MultiPolygon Triangulate(LineString lineString, float radius = 1, int? tubularSegments = 64, int? radialSegments = 8, bool closed = false)
{
var polygons = new List<Polygon>();

Expand Down
6 changes: 3 additions & 3 deletions src/triangulator/triangulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<PackageTags>wkb triangulate earcut</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Bert Temme</Copyright>
<Version>1.4.0</Version>
<Version>1.4.1</Version>
<PackageReleaseNotes>Add lines support</PackageReleaseNotes>
<RootNamespace>Triangulate</RootNamespace>
<AssemblyVersion>1.4.0</AssemblyVersion>
<FileVersion>1.4.0</FileVersion>
<AssemblyVersion>1.4.1</AssemblyVersion>
<FileVersion>1.4.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 23fc7a8

Please sign in to comment.