Add polycon shape to field viewer

This commit is contained in:
Evgeny Redikultsev
2025-10-28 22:02:59 +05:00
parent 09dcf4e7e9
commit c84dc47134
12 changed files with 198 additions and 38 deletions

View File

@@ -62,7 +62,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
var contour = new List<TriangleNet.Geometry.Vertex>();
foreach (var vertex in vertices)
{
contour.Add(new TriangleNet.Geometry.Vertex(vertex.Point.X, vertex.Point.Y));
contour.Add(new TriangleNet.Geometry.Vertex(vertex.Point.X + options.Center.X, vertex.Point.Y + options.Center.Y));
}
// Add contour to polygon — this automatically defines the connecting segments