From bc43a19bed866249526f8ea0ae6d52f3df82f8b3 Mon Sep 17 00:00:00 2001 From: Kisli Date: Wed, 11 Sep 2024 16:09:36 +0300 Subject: [PATCH] Update Hatch.cs Direct cast with IEnumerable.Cast lead to Invalid cast exception --- src/ACadSharp/Entities/Hatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ACadSharp/Entities/Hatch.cs b/src/ACadSharp/Entities/Hatch.cs index 218b0116..0772261a 100644 --- a/src/ACadSharp/Entities/Hatch.cs +++ b/src/ACadSharp/Entities/Hatch.cs @@ -135,7 +135,7 @@ public Hatch() : base() { } /// public override BoundingBox GetBoundingBox() { - return BoundingBox.FromPoints(this.SeedPoints.Cast()); + return BoundingBox.FromPoints(this.SeedPoints.Select(x=>(XYZ)x)); } ///