From ca31cce9c522a0eefc75a80d65add727d0fa97da Mon Sep 17 00:00:00 2001 From: "Joseph R. Eoff" Date: Thu, 4 Aug 2016 15:32:38 +0200 Subject: [PATCH 1/2] fixes exception generated when having 3DFaces with 4 coordinates --- DXFLib/DXF3DFace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DXFLib/DXF3DFace.cs b/DXFLib/DXF3DFace.cs index e7cc022..9236f64 100644 --- a/DXFLib/DXF3DFace.cs +++ b/DXFLib/DXF3DFace.cs @@ -8,7 +8,7 @@ namespace DXFLib [Entity("3DFACE")] public class DXF3DFace : DXFEntity { - private DXFPoint[] corners = new DXFPoint[] { new DXFPoint(), new DXFPoint(), new DXFPoint() }; + private DXFPoint[] corners = new DXFPoint[] { new DXFPoint(), new DXFPoint(), new DXFPoint(), new DXFPoint() }; public DXFPoint[] Corners { get { return corners; } } [Flags] From a7c0e3fa3e4938713226bd114f81fb8382ec3838 Mon Sep 17 00:00:00 2001 From: "Joseph R. Eoff" Date: Thu, 4 Aug 2016 15:33:34 +0200 Subject: [PATCH 2/2] fixes exception generated when having Traces with 4 coordinates --- DXFLib/DXFTrace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DXFLib/DXFTrace.cs b/DXFLib/DXFTrace.cs index ef9973b..031bec6 100644 --- a/DXFLib/DXFTrace.cs +++ b/DXFLib/DXFTrace.cs @@ -10,7 +10,7 @@ public class DXFTrace : DXFEntity { private DXFPoint extrusion = new DXFPoint(); public DXFPoint ExtrusionDirection { get { return extrusion; } } - private DXFPoint[] corners = new DXFPoint[] { new DXFPoint(), new DXFPoint(), new DXFPoint() }; + private DXFPoint[] corners = new DXFPoint[] { new DXFPoint(), new DXFPoint(), new DXFPoint(), new DXFPoint() }; public DXFPoint[] Corners { get { return corners; } } public double Thickness { get; set; }