diff --git a/src/ACadSharp.Tests/Entities/ArcTests.cs b/src/ACadSharp.Tests/Entities/ArcTests.cs index fa07a469..a9460fff 100644 --- a/src/ACadSharp.Tests/Entities/ArcTests.cs +++ b/src/ACadSharp.Tests/Entities/ArcTests.cs @@ -94,4 +94,4 @@ public void GetEndVerticesTest() AssertUtils.AreEqual(end, e2, "end point"); } } -} +} \ No newline at end of file diff --git a/src/ACadSharp/Entities/Circle.cs b/src/ACadSharp/Entities/Circle.cs index 3e7aa66d..b709290c 100644 --- a/src/ACadSharp/Entities/Circle.cs +++ b/src/ACadSharp/Entities/Circle.cs @@ -15,14 +15,11 @@ namespace ACadSharp.Entities [DxfSubClass(DxfSubclassMarker.Circle)] public class Circle : Entity { - /// - public override ObjectType ObjectType => ObjectType.CIRCLE; - - /// - public override string ObjectName => DxfFileToken.EntityCircle; - - /// - public override string SubclassMarker => DxfSubclassMarker.Circle; + /// + /// Specifies the center of an arc, circle, ellipse, view, or viewport. + /// + [DxfCodeValue(10, 20, 30)] + public XYZ Center { get; set; } = XYZ.Zero; /// /// Specifies the three-dimensional normal unit vector for the object. @@ -30,17 +27,11 @@ public class Circle : Entity [DxfCodeValue(210, 220, 230)] public XYZ Normal { get; set; } = XYZ.AxisZ; - /// - /// Specifies the distance a 2D object is extruded above or below its elevation. - /// - [DxfCodeValue(39)] - public double Thickness { get; set; } = 0.0; + /// + public override string ObjectName => DxfFileToken.EntityCircle; - /// - /// Specifies the center of an arc, circle, ellipse, view, or viewport. - /// - [DxfCodeValue(10, 20, 30)] - public XYZ Center { get; set; } = XYZ.Zero; + /// + public override ObjectType ObjectType => ObjectType.CIRCLE; /// /// Specifies the radius of an arc, circle, or position marker. @@ -59,6 +50,15 @@ public double Radius } } + /// + public override string SubclassMarker => DxfSubclassMarker.Circle; + + /// + /// Specifies the distance a 2D object is extruded above or below its elevation. + /// + [DxfCodeValue(39)] + public double Thickness { get; set; } = 0.0; + private double _radius = 1.0; /// @@ -74,4 +74,4 @@ public override BoundingBox GetBoundingBox() return new BoundingBox(min, max); } } -} +} \ No newline at end of file