From dbd85c05594e53ab658333b03c3340923abdee71 Mon Sep 17 00:00:00 2001
From: ramox81 <184937705+ramox81@users.noreply.github.com>
Date: Fri, 11 Sep 2026 13:12:18 +0300
Subject: [PATCH] Recreate hatch regions with holes and nested island grouping
---
src/app/command_driver.rs | 55 +++++++++++++++++++++++++++------------
1 file changed, 39 insertions(+), 16 deletions(-)
diff --git a/src/app/command_driver.rs b/src/app/command_driver.rs
index b626b575e..e651ef0fb 100644
--- a/src/app/command_driver.rs
+++ b/src/app/command_driver.rs
@@ -4689,36 +4689,59 @@ impl OpenCADStudio {
glam::DVec3::from_array(storage.x_axis),
glam::DVec3::from_array(storage.y_axis),
);
- let entities = if region {
- let entities = source.paths.iter().map(|path| {
- let curves = path.edges.iter().map(crate::entities::hatch::edge_curve).collect::