From 22cd0105b73220e3c6b4ba6ad3ae8c5589635965 Mon Sep 17 00:00:00 2001 From: Zdenek Borovec Date: Sat, 21 Sep 2024 23:27:42 +0200 Subject: [PATCH] add Contour.GetVertexCopies() --- Contour.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Contour.cs b/Contour.cs index 29b8b6d..06b41a4 100644 --- a/Contour.cs +++ b/Contour.cs @@ -42,6 +42,15 @@ namespace Boprs /// true if the contour is clockwise, false if counter-clockwise. public bool IsClockwise { get => SignedArea < 0; } + /// + /// Get a copy of the list of the vertices of this contour. + /// + /// List of vertices defining this region. + public List GetVertexCopies() + { + return new List(Vertices); + } + /// /// Compute the signed area of the contour ///