forked from 1b-agent/opencadstudio-upstream
Merge pull request #1147 from ramox81
This commit is contained in:
commit
9e9664c843
3 files changed
+16
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-label="Region" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M3 8L11 3L21 8V21H3Z" fill="#B4B6B9" stroke="none"/><circle cx="12" cy="13" r="4" fill="#6DB7ED" stroke="none"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 282 B |
@@ -1114,6 +1114,13 @@ impl OpenCADStudio {
|
|||||||
// REGION — convert selected closed boundaries (closed polylines /
|
// REGION — convert selected closed boundaries (closed polylines /
|
||||||
// circles) into Region entities (one wire loop each).
|
// circles) into Region entities (one wire loop each).
|
||||||
"REGION" | "REG" => {
|
"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::entities::Region;
|
||||||
use acadrust::types::Vector3;
|
use acadrust::types::Vector3;
|
||||||
let mut regions = Vec::new();
|
let mut regions = Vec::new();
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Tool {
|
||||||
|
command: "REGION",
|
||||||
|
label: "Region",
|
||||||
|
icon: include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/icons/region.svg")),
|
||||||
|
options: &[],
|
||||||
|
}
|
||||||
Reference in new issue
Block a user