Files
speckle-sharp-connectors/Sdk/Speckle.Common.MeshTriangulation/Poly2.cs
T
kekesidavid 48e66f9084 Mesh generator logic to triangulate 2D and 3D surfaces (#529)
* added mesh generator logic to triangulate 2D and 3D surfaces from polygon inputs

* removed empty folder

* checking hole polygon vertex order, added comments

* csharpier

* added MeshTriangulation project to Local sln

* added reference to MeshTriangulator in Tekla Converters
2025-01-29 15:27:09 +01:00

19 lines
338 B
C#

using Speckle.DoubleNumerics;
namespace Speckle.Common.MeshTriangulation;
public readonly struct Poly2
{
public List<Vector2> Vertices { get; }
public Poly2()
{
Vertices = new List<Vector2>();
}
public Poly2(List<Vector2> vertices)
{
Vertices = vertices ?? throw new ArgumentNullException(nameof(vertices));
}
}