Add polygon shape

This commit is contained in:
Evgeny Redikultsev
2025-09-14 19:47:23 +05:00
parent c31e56869c
commit 35fccfaa11
56 changed files with 867 additions and 113 deletions

View File

@@ -10,7 +10,7 @@ namespace StructureHelperCommon.Models.Shapes
public Guid Id { get; }
public IReadOnlyList<IVertex> Vertices => _vertices;
public bool IsClosed { get; set; }
public bool IsClosed { get; set; } = true;
public PolygonShape(Guid id)
{
@@ -62,7 +62,6 @@ namespace StructureHelperCommon.Models.Shapes
{
throw new StructureHelperException("The specified vertex was not found in the polygon.");
}
return index;
}