Show ENH for first length pick

Style hidden interface models with disabled text and move the first length-tool pick coordinates to the HUD as ENH in the global georeferenced frame.

Generated with the assistance of an AI coding tool.
This commit is contained in:
Dion Moult
2026-05-14 11:30:10 +10:00
parent b1bad23a64
commit 8f937052b8
5 changed files with 48 additions and 0 deletions
+7
View File
@@ -858,6 +858,13 @@ void LengthMeasurement::rebuildLaserOverlay(ViewportWindow& vp) {
std::vector<OverlayRenderer::Label> labels;
QStringList hud_lines;
hud_lines << QStringLiteral("Laser measure (click another point for distance)");
double enh[3] = {0.0, 0.0, 0.0};
if (vp.meshLocalToGlobal(first_pick_.object_id, first_pick_.mesh_local, enh)) {
hud_lines << QString("ENH: %1, %2, %3")
.arg(enh[0], 0, 'f', 3)
.arg(enh[1], 0, 'f', 3)
.arg(enh[2], 0, 'f', 3);
}
// ---------- Coplanar-patch BFS for face extent ----------
// Read back the seed mesh, transform every vertex into world space,