sketch line and any tag on it
Inheritance: ObjectSketch
Ejemplo n.º 1
0
        /// <summary>
        /// initialize geometry objects and bounding box
        /// </summary>
        /// <param name="profile">the profile of the beam system</param>
        private void Initialize(IList <Line> profile)
        {
            // deal with first line in profile
            m_objects.Clear();
            LineSketch firstSketch = new LineSketch(GetLine2D(profile[0]));

            m_boundingBox           = firstSketch.BoundingBox;
            firstSketch.IsDirection = true;
            m_objects.Add(firstSketch);

            // all other lines
            for (int i = 1; i < profile.Count; i++)
            {
                LineSketch sketch = new LineSketch(GetLine2D(profile[i]));
                m_boundingBox = RectangleF.Union(BoundingBox, sketch.BoundingBox);
                m_objects.Add(sketch);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// initialize geometry objects and bounding box
        /// </summary>
        /// <param name="profile">the profile of the beam system</param>
        private void Initialize(IList<Line> profile)
        {
            // deal with first line in profile
            m_objects.Clear();
            LineSketch firstSketch  = new LineSketch(GetLine2D(profile[0]));
            m_boundingBox           = firstSketch.BoundingBox;
            firstSketch.IsDirection = true;
            m_objects.Add(firstSketch);

            // all other lines
            for (int i = 1; i < profile.Count; i++)
            {
                LineSketch sketch = new LineSketch(GetLine2D(profile[i]));
                m_boundingBox = RectangleF.Union(BoundingBox, sketch.BoundingBox);
                m_objects.Add(sketch);
            }
        }