Пример #1
0
        public static Polyline ToPolyline(this DxfLwPolyline poly)
        {
            var vertices = poly.Vertices.Select(v => v.ToVertex(poly.Elevation)).ToList();

            if (poly.IsClosed && vertices.Count > 0)
            {
                vertices.Add(vertices[0]);
            }

            return(new Polyline(vertices, poly.GetEntityColor(), poly));
        }
Пример #2
0
 public static Polyline ToPolyline(this DxfLwPolyline poly)
 {
     return(new Polyline(poly.Vertices.Select(v => v.ToVertex(poly.Elevation)), poly.GetEntityColor(), poly));
 }