48e66f9084
* 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
19 lines
338 B
C#
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));
|
|
}
|
|
}
|