forked from 1b-agent/opencadstudio-upstream
Match DIVIDE marker placement behavior
This commit is contained in:
1 parent
7d0c059b30
commit
18569687a1
4 files changed
+135
-74
No files matched your search
+9
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user