Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Contour" /> class.
        /// </summary>
        /// <param name="points">The points that make up the contour.</param>
        /// <param name="segmentmarker">Contour marker.</param>
        /// <param name="convex">The hole is convex.</param>
        public Contour(IEnumerable <Vertex> points, int segmentmarker, bool convex, SegmentMarkingType segmentmarkingtype = SegmentMarkingType.Homogeneous)
        {
            AddPoints(points);

            this.segmentMarker = segmentmarker;
            this.convex        = convex;
            segmentMarkingType = segmentmarkingtype;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Contour" /> class.
 /// </summary>
 /// <param name="points">The points that make up the contour.</param>
 /// <param name="segmentmarker">Contour marker.</param>
 public Contour(IEnumerable <Vertex> points, int segmentmarker, SegmentMarkingType segmentmarkingtype = SegmentMarkingType.Homogeneous)
     : this(points, segmentmarker, false, segmentmarkingtype)
 {
 }