using System; using System.Collections.Generic; namespace TriangleNet.Geometry { public interface IPolygon { List Points { get; } List Segments { get; } List Holes { get; } List Regions { get; } bool HasPointMarkers { get; set; } bool HasSegmentMarkers { get; set; } [Obsolete("Use polygon.Add(contour) method instead.")] void AddContour(IEnumerable points, int marker, bool hole, bool convex); [Obsolete("Use polygon.Add(contour) method instead.")] void AddContour(IEnumerable points, int marker, Point hole); Rectangle Bounds(); void Add(Vertex vertex); void Add(ISegment segment, bool insert = false); void Add(ISegment segment, int index); void Add(Contour contour, bool hole = false); void Add(Contour contour, Point hole); } }