Esempio n. 1
0
        public static Polyline ToPolyline(this DxfPolyline poly)
        {
            var vertices = poly.Vertices.Select(v => v.ToVertex()).ToList();

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

            return(new Polyline(vertices, poly.GetEntityColor(), poly));
        }
Esempio n. 2
0
 public static Polyline ToPolyline(this DxfPolyline poly)
 {
     return(new Polyline(poly.Vertices.Select(v => v.ToVertex()), poly.GetEntityColor(), poly));
 }