diff options
Diffstat (limited to 'UVtools.Core/Gerber/Apertures/PoygonAperture.cs')
-rw-r--r-- | UVtools.Core/Gerber/Apertures/PoygonAperture.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.Core/Gerber/Apertures/PoygonAperture.cs b/UVtools.Core/Gerber/Apertures/PoygonAperture.cs index e10c1c2..0b8bb9a 100644 --- a/UVtools.Core/Gerber/Apertures/PoygonAperture.cs +++ b/UVtools.Core/Gerber/Apertures/PoygonAperture.cs @@ -23,11 +23,11 @@ public class PolygonAperture : Aperture #endregion #region Constructor - public PolygonAperture() : base("Polygon") { } + public PolygonAperture(GerberDocument document) : base(document, "Polygon") { } - public PolygonAperture(int index, double diameter, ushort vertices) : base(index, "Polygon") + public PolygonAperture(GerberDocument document, int index, double diameter, ushort vertices) : base(document, index, "Polygon") { - Diameter = diameter; + Diameter = document.GetMillimeters(diameter); Vertices = vertices; } #endregion |