forked from 1b-agent/opencadstudio-upstream
Implement surface thickening workflow
This commit is contained in:
1 parent
56e09cd3f5
commit
4b45e06cf8
7 files changed
+308
-4
No files matched your search
@@ -734,7 +734,7 @@ impl OpenCADStudio {
|
||||
}
|
||||
|
||||
// ── EXTRUDE ────────────────────────────────────────────────────
|
||||
"EXTRUDE" | "THICKEN" => {
|
||||
"EXTRUDE" => {
|
||||
use crate::modules::insert::solid3d_cmds::ExtrudeCommand;
|
||||
// A preselection becomes the complete source set; otherwise
|
||||
// the interactive command gathers any number of profiles.
|
||||
@@ -769,6 +769,19 @@ impl OpenCADStudio {
|
||||
}
|
||||
}
|
||||
|
||||
"THICKEN" => {
|
||||
use crate::modules::insert::solid3d_cmds::ThickenCommand;
|
||||
let selected = self.tabs[i]
|
||||
.scene
|
||||
.selected_entities()
|
||||
.into_iter()
|
||||
.map(|(handle, entity)| (handle, entity.clone()))
|
||||
.collect();
|
||||
let command = ThickenCommand::new(selected);
|
||||
self.command_line.push_info(&command.prompt());
|
||||
self.tabs[i].active_cmd = Some(Box::new(command));
|
||||
}
|
||||
|
||||
"PRESSPULL" => {
|
||||
use crate::modules::insert::solid3d_cmds::PresspullCommand;
|
||||
let color = self.tabs[i].scene.layer_color(&self.tabs[i].active_layer);
|
||||
|
||||
Reference in new issue
Block a user