Complete EXTRUDE behavior and editable properties (#965)

Complete EXTRUDE behavior and editable properties
This commit is contained in:
Hakan Seven authored and GitHub committed 2026-09-02 17:42:15 +03:00
commit 11e25b8e73
13 files changed
+1615 -114

No files matched your search

+19 -4
View File
@@ -1129,6 +1129,19 @@ impl CadCommand for TCountCommand {
}
// ── Result token ──────────────────────────────────────────────────────────
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ExtrudeMode {
Solid,
Surface,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ExtrudeExtent {
Height(f64),
Direction(DVec3),
Path(Handle),
}
/// Returned by every `CadCommand` method to tell main.rs what to do.
#[allow(dead_code)]
pub enum CmdResult {
@@ -1414,10 +1427,12 @@ pub enum CmdResult {
/// Translation vector applied once to every selected point.
delta: DVec3,
},
/// Extrude the profile entity `handle` along its plane normal.
ExtrudeEntity {
handle: Handle,
height: f64,
/// Extrude one or more profiles with the requested construction mode.
ExtrudeEntities {
handles: Vec<Handle>,
extent: ExtrudeExtent,
mode: ExtrudeMode,
taper_angle: f64,
color: [f32; 4],
},
/// Pull a closed profile or a planar solid face by a signed distance.