Implement surface thickening workflow

This commit is contained in:
ramox81 committed 2026-09-09 12:35:18 +03:00
1 parent 56e09cd3f5
commit 4b45e06cf8
7 files changed
+308 -4

No files matched your search

+14 -1
View File
@@ -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);