From 95644ca0098df8f1898ae0a2960691c4c8695abb Mon Sep 17 00:00:00 2001 From: mmirbach Date: Mon, 30 Aug 2021 17:15:52 +0300 Subject: [PATCH 1/2] clear polys --- common/measurement.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/measurement.cpp b/common/measurement.cpp index 4086690dbd..26b5b6b3b1 100644 --- a/common/measurement.cpp +++ b/common/measurement.cpp @@ -14,6 +14,7 @@ void measurement::enable() { void measurement::disable() { state.points.clear(); state.edges.clear(); + state.polygons.clear(); measurement_active = false; config_file::instance().set(configurations::viewer::is_measuring, false); } From 3002e1d5d5f4c6c0bbd644f5b01211c9b063a699 Mon Sep 17 00:00:00 2001 From: mmirbach Date: Mon, 30 Aug 2021 17:19:55 +0300 Subject: [PATCH 2/2] add area measuring explanation --- common/viewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/viewer.cpp b/common/viewer.cpp index b025f1a70d..49dba12d30 100644 --- a/common/viewer.cpp +++ b/common/viewer.cpp @@ -715,7 +715,7 @@ namespace rs2 // -------------------- Measure ---------------- - std::string measure_tooltip = "Measure distance between points"; + std::string measure_tooltip = "Measure distance between points\nHold shift to connect more than 2 points and measure area"; if (!glsl_available) measure_tooltip += "\nRequires GLSL acceleration! \nEnable 2 checkboxes in Settings - Performance: \n- Use GLSL for Rendering \n- Use GLSL for Processing "; if (_measurements.is_enabled()) {