Exemplo n.º 1
0
        /// <summary>
        /// Forms the bounding rectangles for all the lines.
        /// </summary>
        protected void MakeLineRects()
        {
            LineRects.Clear();

            for (var i = 0; i < Lines.Count; i++)
            {
                var pRect = new C2DRect();
                Lines[i].GetBoundingRect(pRect);
                LineRects.Add(pRect);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Assigment sets from another
        /// </summary>
        /// <param name="Other">The other polygon.</param>
        public void Set(C2DPolyBase Other)
        {
            Clear();

            Lines.MakeValueCopy(Other.Lines);

            BoundingRect.Set(Other.BoundingRect);

            for (var i = 0; i < Other.LineRects.Count; i++)
            {
                LineRects.Add(new C2DRect(Other.LineRects[i]));
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Clears all.
 /// </summary>
 public void Clear()
 {
     BoundingRect.Clear();
     Lines.Clear();
     LineRects.Clear();
 }