feat: expose Region in the Draw expansion

This commit is contained in:
ramox81 committed 2026-09-10 15:57:22 +03:00
1 parent b19992cbcb
commit c50610e37b
3 files changed
+16

No files matched your search

+7
View File
@@ -1110,6 +1110,13 @@ impl OpenCADStudio {
// REGION — convert selected closed boundaries (closed polylines /
// circles) into Region entities (one wire loop each).
"REGION" | "REG" => {
if self.tabs[i].scene.selected_entities().is_empty() {
use crate::modules::draw::select::SelectObjectsCommand;
let command = SelectObjectsCommand::new("REGION");
self.command_line.push_info(&command.prompt());
self.tabs[i].active_cmd = Some(Box::new(command));
return Some(iced::Task::none());
}
use acadrust::entities::Region;
use acadrust::types::Vector3;
let mut regions = Vec::new();
+6
View File
@@ -0,0 +1,6 @@
Tool {
command: "REGION",
label: "Region",
icon: include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/icons/region.svg")),
options: &[],
}