Beispiel #1
0
        private void GetSegmentsFromUKS()
        {
            boundaries.Clear();
            IList <Thing> boundarySegments = uks.GetChildren(uks.Labeled("Segment"));

            for (int i = 0; i < boundarySegments.Count; i++)
            {
                Thing seg = boundarySegments[i];
                if (seg.Children.Count < 2)
                {
                    continue;
                }
                boundaries.Add(new ModuleBoundarySegments.Arc
                {
                    p1 = (PointPlus)seg.Children[0].V,
                    p2 = (PointPlus)seg.Children[1].V,
                });
            }
        }