From 23fc7a86c643b2ec9632c37b4a7fb4b8a5c9f940 Mon Sep 17 00:00:00 2001 From: Bert Temme Date: Wed, 14 Feb 2024 13:58:48 +0100 Subject: [PATCH] to release 1.4.1 --- README.md | 2 ++ src/triangulator.tests/TriangulateTests.cs | 2 +- src/triangulator/Triangulator.cs | 2 +- src/triangulator/triangulator.csproj | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b2ae3e5..a669535 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/triangulator.tests/TriangulateTests.cs b/src/triangulator.tests/TriangulateTests.cs index 8f6b7ab..22e6cf6 100644 --- a/src/triangulator.tests/TriangulateTests.cs +++ b/src/triangulator.tests/TriangulateTests.cs @@ -14,7 +14,7 @@ public void TriangulateLine() var wkt = "LINESTRING(-10 0 0,0 0 0,0 10 0)"; var line = (LineString)Geometry.Deserialize(wkt); - var triangles = Triangulator.Triangulate(line,2, 60, 8); + var triangles = Triangulator.Triangulate(line,2, 60); GltfCreator.CreateGltf(triangles, @"lines.gltf"); } diff --git a/src/triangulator/Triangulator.cs b/src/triangulator/Triangulator.cs index 6294442..006fac3 100644 --- a/src/triangulator/Triangulator.cs +++ b/src/triangulator/Triangulator.cs @@ -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(); diff --git a/src/triangulator/triangulator.csproj b/src/triangulator/triangulator.csproj index 090b0f7..0c22331 100644 --- a/src/triangulator/triangulator.csproj +++ b/src/triangulator/triangulator.csproj @@ -13,11 +13,11 @@ wkb triangulate earcut MIT Bert Temme - 1.4.0 + 1.4.1 Add lines support Triangulate - 1.4.0 - 1.4.0 + 1.4.1 + 1.4.1