diff --git a/src/ACadSharp/ACadSharp.csproj b/src/ACadSharp/ACadSharp.csproj index a5d51b87..8e8616d8 100644 --- a/src/ACadSharp/ACadSharp.csproj +++ b/src/ACadSharp/ACadSharp.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0;net5.0;net48;netstandard2.1 + net5.0;net6.0;net7.0;net48;netstandard2.1 DomCr ACadSharp C# Dwg Dxf @@ -17,7 +17,8 @@ true README.md - 2.4.0-beta + 1.0.0 + ../nupkg diff --git a/src/ACadSharp/Entities/Circle.cs b/src/ACadSharp/Entities/Circle.cs index 468be68e..3e7aa66d 100644 --- a/src/ACadSharp/Entities/Circle.cs +++ b/src/ACadSharp/Entities/Circle.cs @@ -69,9 +69,8 @@ public Circle() : base() { } /// public override BoundingBox GetBoundingBox() { - XYZ min = new XYZ(Math.Min(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Min(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Min(this.Center.Z - this.Radius, this.Center.Z + this.Radius)); - XYZ max = new XYZ(Math.Max(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Max(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Max(this.Center.Z - this.Radius, this.Center.Z + this.Radius)); - + XYZ min = new XYZ(Math.Min(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Min(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Min(this.Center.Z, this.Center.Z)); + XYZ max = new XYZ(Math.Max(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Max(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Max(this.Center.Z, this.Center.Z)); return new BoundingBox(min, max); } }