Match DIVIDE marker placement behavior

This commit is contained in:
ramox81 committed 2026-09-11 10:26:08 +03:00
1 parent 7d0c059b30
commit 18569687a1
4 files changed
+135 -74

No files matched your search

+9 -1
View File
@@ -1481,7 +1481,7 @@ pub enum CmdResult {
op: crate::modules::draw::modify::pedit::PeditOp,
},
/// Place Point entities at N equal intervals along the entity.
DivideEntity { handle: Handle, n: usize },
DivideEntity { handle: Handle, n: usize, marker: Option<CurveMarker> },
/// Place Point entities at `segment_length` intervals along the entity.
MeasureEntity { handle: Handle, segment_length: f64 },
/// Extend/trim a Line or Arc by the given mode; end command.
@@ -1939,6 +1939,14 @@ impl InputKind {
}
}
#[derive(Clone, Debug)]
pub struct CurveMarker {
pub block: String,
pub align: bool,
pub plane: WorkingPlane,
}
pub trait CadCommand: Send {
/// Keep the layer already carried by entities committed by this command
/// instead of replacing it with the current drawing layer.