Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Feb 15, 2025
1 parent eaf9cb4 commit 39dab93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/ACadSharp.Tests/Entities/ArcTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ public void GetEndVerticesTest()
AssertUtils.AreEqual<XY>(end, e2, "end point");
}
}
}
}
38 changes: 19 additions & 19 deletions src/ACadSharp/Entities/Circle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,23 @@ namespace ACadSharp.Entities
[DxfSubClass(DxfSubclassMarker.Circle)]
public class Circle : Entity
{
/// <inheritdoc/>
public override ObjectType ObjectType => ObjectType.CIRCLE;

/// <inheritdoc/>
public override string ObjectName => DxfFileToken.EntityCircle;

/// <inheritdoc/>
public override string SubclassMarker => DxfSubclassMarker.Circle;
/// <summary>
/// Specifies the center of an arc, circle, ellipse, view, or viewport.
/// </summary>
[DxfCodeValue(10, 20, 30)]
public XYZ Center { get; set; } = XYZ.Zero;

/// <summary>
/// Specifies the three-dimensional normal unit vector for the object.
/// </summary>
[DxfCodeValue(210, 220, 230)]
public XYZ Normal { get; set; } = XYZ.AxisZ;

/// <summary>
/// Specifies the distance a 2D object is extruded above or below its elevation.
/// </summary>
[DxfCodeValue(39)]
public double Thickness { get; set; } = 0.0;
/// <inheritdoc/>
public override string ObjectName => DxfFileToken.EntityCircle;

/// <summary>
/// Specifies the center of an arc, circle, ellipse, view, or viewport.
/// </summary>
[DxfCodeValue(10, 20, 30)]
public XYZ Center { get; set; } = XYZ.Zero;
/// <inheritdoc/>
public override ObjectType ObjectType => ObjectType.CIRCLE;

/// <summary>
/// Specifies the radius of an arc, circle, or position marker.
Expand All @@ -59,6 +50,15 @@ public double Radius
}
}

/// <inheritdoc/>
public override string SubclassMarker => DxfSubclassMarker.Circle;

/// <summary>
/// Specifies the distance a 2D object is extruded above or below its elevation.
/// </summary>
[DxfCodeValue(39)]
public double Thickness { get; set; } = 0.0;

private double _radius = 1.0;

/// <summary>
Expand All @@ -74,4 +74,4 @@ public override BoundingBox GetBoundingBox()
return new BoundingBox(min, max);
}
}
}
}

0 comments on commit 39dab93

Please sign in to comment.