From beafb17b8ca141e5b199d73f3095510a9bfabeaf Mon Sep 17 00:00:00 2001 From: Mikolaj505 <61552376+Mikolaj505@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:33:18 +0100 Subject: [PATCH] fix: Applying transform to boundary entities as well as to edges, when applying transform to the hatch --- src/ACadSharp/Entities/Hatch.BoundaryPath.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ACadSharp/Entities/Hatch.BoundaryPath.cs b/src/ACadSharp/Entities/Hatch.BoundaryPath.cs index 2d323d4d4..8ffc02c86 100644 --- a/src/ACadSharp/Entities/Hatch.BoundaryPath.cs +++ b/src/ACadSharp/Entities/Hatch.BoundaryPath.cs @@ -96,9 +96,14 @@ public BoundaryPath(params IEnumerable entities) : this() /// public void ApplyTransform(Transform transform) { - foreach (var e in this.Edges) + foreach (var edge in this.Edges) { - e.ApplyTransform(transform); + edge.ApplyTransform(transform); + } + + foreach (var entity in this.Entities) + { + entity.ApplyTransform(transform); } }