feat(measuregeom): Quick mode measures around the cursor

MEASUREGEOM gains a Quick option. As the cursor moves, the nearest
drawn geometry along the working plane's X and Y lines through it is
measured live: cyan measurement lines and a Horizontal/Vertical readout
by the cursor. A click prints the current readout and keeps measuring;
Enter ends the command. The rays go through the scene's interaction
index, so large drawings stay responsive.

A structure-pick command whose miss message is empty now gets the click
as a plain point instead of an error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-15 13:22:26 +03:00
1 parent de1e49a4c5
commit d285fd781e
27 files changed
+291 -29

No files matched your search

+9 -2
View File
@@ -4656,8 +4656,15 @@ impl OpenCADStudio {
.as_ref()
.map(|c| c.object_pick_miss_message())
.unwrap_or("No object near click.");
self.command_line.push_error(msg);
None
if msg.is_empty() {
self.tabs[i]
.active_cmd
.as_mut()
.map(|c| c.on_point(pick_wcs))
} else {
self.command_line.push_error(msg);
None
}
}
} else if self.tabs[i]
.active_cmd