add Contour.GetVertexCopies()
This commit is contained in:
parent
2e57f41125
commit
22cd0105b7
1 changed files with 9 additions and 0 deletions
|
@ -42,6 +42,15 @@ namespace Boprs
|
||||||
/// <returns><c>true</c> if the contour is clockwise, <c>false</c> if counter-clockwise.</returns>
|
/// <returns><c>true</c> if the contour is clockwise, <c>false</c> if counter-clockwise.</returns>
|
||||||
public bool IsClockwise { get => SignedArea < 0; }
|
public bool IsClockwise { get => SignedArea < 0; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get a copy of the list of the vertices of this contour.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>List of vertices defining this region.</returns>
|
||||||
|
public List<Point2d> GetVertexCopies()
|
||||||
|
{
|
||||||
|
return new List<Point2d>(Vertices);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Compute the signed area of the contour
|
/// Compute the signed area of the contour
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue