forked from 1b-agent/opencadstudio-upstream
Feat: DONUT command (DO) — filled circular ring as LwPolyline
Creates LwPolyline with 2 vertices at (cx ± r_avg, cy), bulge=1.0, start_width/end_width = (outer - inner) / 2, is_closed = true. Workflow: inner diameter → outer diameter → click center points (Enter to exit). Inner diameter 0 → filled solid circle. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
9a1eeab53d
commit
8fca75fade
3 files changed
+134
-1
No files matched your search
+8
-1
@@ -332,6 +332,13 @@ impl H7CAD {
|
||||
self.tabs[i].active_cmd = Some(Box::new(new_cmd));
|
||||
}
|
||||
|
||||
"DONUT"|"DO" => {
|
||||
use crate::modules::home::draw::donut::DonutCommand;
|
||||
let cmd = DonutCommand::new();
|
||||
self.command_line.push_info(&cmd.prompt());
|
||||
self.tabs[i].active_cmd = Some(Box::new(cmd));
|
||||
}
|
||||
|
||||
"CIRCLE"|"C" => {
|
||||
use crate::modules::home::draw::circle::CircleCommand;
|
||||
let new_cmd = CircleCommand::new();
|
||||
@@ -1037,7 +1044,7 @@ impl H7CAD {
|
||||
|
||||
"HELP"|"?" => {
|
||||
self.command_line.push_output(
|
||||
"Draw: LINE CIRCLE ARC PLINE RECT POLY POINT ELLIPSE SPLINE RAY XLINE HATCH | \
|
||||
"Draw: LINE CIRCLE ARC PLINE RECT POLY POINT ELLIPSE SPLINE RAY XLINE HATCH DONUT | \
|
||||
Modify: MOVE COPY ROTATE SCALE MIRROR ERASE OFFSET EXTEND FILLET CHAMFER STRETCH EXPLODE TRIM BREAK JOIN LENGTHEN ALIGN | \
|
||||
Array: ARRAY ARRAYRECT ARRAYPOLAR ARRAYPATH | \
|
||||
Text: TEXT MTEXT LEADER MLEADER | \
|
||||
|
||||
Reference in new issue
Block a user