53 Commits

Author SHA1 Message Date
Lukas Matena
a47bb5bf1b Measurement: extract features on the fly, not when the tool is opened 2022-12-06 09:57:24 +01:00
Lukas Matena
a37f09edaa Measurement: optimize feature extraction:
- do not call ransac when not needed
- decrease number of ransac iterations
- precalculate inverse of transformation matrix
- pass the min error from ransac algorithm, do not calculate it again
2022-12-06 09:57:24 +01:00
Lukas Matena
bed64cb7c7 Measurement: optimize plane highlighting 2022-12-06 09:57:24 +01:00
Lukas Matena
456e61c7d3 Measurement: Fixed edge detection on single-triangle planes 2022-12-02 12:35:05 +01:00
Lukas Matena
eeea803be5 Measurement: tweaking of the tolerances, ransacing the whole border 2022-12-02 12:35:04 +01:00
Lukas Matena
b27653493a Measurement: prevent ending up in an infinite loop with broken models 2022-12-02 12:26:30 +01:00
Lukas Matena
d4ad4aff01 Measurement: Fixed and refactored circle detection:
- first/last segment of a circular segment was sometimes separated
- circles were sometimes shown where they shouldn't be
2022-12-02 12:26:30 +01:00
enricoturri1966
36b4a149a4 Gizmo measure - Fixed calculation of angle edge-plane 2022-12-02 12:26:29 +01:00
enricoturri1966
305ea0da27 Gizmo measure - Fixed angle for perpendicular edge-plane use case 2022-12-02 12:26:28 +01:00
enricoturri1966
832b0a69e8 Fixed warnings 2022-12-02 12:26:28 +01:00
enricoturri1966
075c241906 Tech ENABLE_GIZMO_MEASURE_WORLD_COORDINATES set as default
Fixed conflicts during rebase to master
2022-12-02 12:26:12 +01:00
enricoturri1966
fc2f0bad6e Gizmo measure modified to accept single full instance selection, to combine the volumes meshes into a single mesh and pass it to the back end after transform it in world coordinates
Changes embedded into tech ENABLE_GIZMO_MEASURE_WORLD_COORDINATES

Fixed conflicts during rebase to master
2022-12-02 11:59:47 +01:00
Vojtech Bubnik
a98467f661 Merge remote-tracking branch 'remotes/origin/master' into vb_treesupports 2022-11-18 13:26:48 +01:00
Vojtech Bubnik
8190eb4fe6 Fixed some compilation errors and warnings. 2022-11-15 18:44:38 +01:00
Lukas Matena
b3183cb277 Measurement: Fixed a bug in circles detection (failing assert) 2022-11-09 15:00:59 +01:00
Pavel Mikuš
633ce8aa21
Pm jps path finding (#8)
New step - estimation of curling on both the model and the support extrusions.
Improvements in curled filament estimation algortihm
Implementation of Jump Point Search algorithm 
Use of JPS algorithm to avoid curled extrusions during travel moves in Gcode export
2022-11-09 13:33:58 +01:00
Lukas Matena
a09c269584 Measurement: make the edge endpoint detection threshold smaller for short edges 2022-11-08 12:31:26 +01:00
Vojtech Bubnik
3cdacd700c Merged with master 2022-11-07 14:51:07 +01:00
enricoturri1966
5df2713010 Measuring - Fixed transformation of distance_xyz 2022-11-07 14:46:21 +01:00
Lukas Matena
0c88b5712a Measurement: Circles filtering (part 2) 2022-11-04 11:52:44 +01:00
Lukas Matena
d07537c1f0 Measurement: Merge adjacent edges 2022-11-04 11:52:44 +01:00
Lukas Matena
4b9630c23b Measurement: Circles filtering (part 1) 2022-11-04 11:52:44 +01:00
enricoturri1966
7650be770c Measuring: tweak to calculation of edge-edge distance 2022-11-03 14:24:28 +01:00
enricoturri1966
05e82b1fc5 Measuring: validation for zero distance moved from backend to frontend 2022-11-03 13:20:35 +01:00
Lukas Matena
dda0b50b5c Fixed a crash in measuring backend when handling broken models 2022-11-03 12:14:27 +01:00
enricoturri1966
da5a9277fa Tech ENABLE_MEASURE_GIZMO set as default 2022-11-02 08:50:12 +01:00
enricoturri1966
ca923c084f Measuring - Gizmo measure - Fixed measure of distance point-circle when the point is the circle's center 2022-10-24 15:13:56 +02:00
enricoturri1966
cf11101d16 Measuring - Gizmo measure - Measuring data converted to world coordinates 2022-10-12 13:38:53 +02:00
enricoturri1966
ada7618ddb Measuring: Gizmo measure shows dimensioning for distance circle-circle 2022-10-12 09:46:11 +02:00
enricoturri1966
d561fb97c7 Measuring - Gizmo measure shows dimensioning for distance edge-plane 2022-10-12 09:43:19 +02:00
enricoturri1966
e37187a546 Measuring - Gizmo measure shows dimensioning for distance plane-circle 2022-10-12 09:43:19 +02:00
enricoturri1966
29d6127774 Measuring - Fixes in plane-plane measurement - Measurements validation - Fixes in dimensioning rendering 2022-10-12 09:43:19 +02:00
enricoturri1966
afa003f3cb Fixed warnings 2022-10-12 09:43:19 +02:00
enricoturri1966
ab3eb723c9 Measuring - Gizmo measure shows value of distance dimensioning in 3D scene 2022-10-12 09:43:18 +02:00
enricoturri1966
00fb180c70 Measuring - Gizmo measure shows dimensioning for angle plane-plane 2022-10-12 09:43:18 +02:00
enricoturri1966
3f8820bf20 Measuring - Calculation of angle between edge and plane moved to backend 2022-10-12 09:43:18 +02:00
enricoturri1966
0a8f500819 Measuring - struct AngleAndPoints reworked as struct AngleAndEdges 2022-10-12 09:43:18 +02:00
enricoturri1966
1c084c4f62 Measuring - Some refactoring 2022-10-12 09:43:18 +02:00
enricoturri1966
f051847ac6 Measuring - Added a bunch of utility functions in Measure.hpp 2022-10-12 09:43:18 +02:00
Lukas Matena
3449ad0f73 Fixed crashing asserts due to a bug in the just merged branch 2022-10-12 09:43:18 +02:00
Lukas Matena
79ab1ab1b5 Measurement: moving arrow-drawing functions from frontend to the backend (3/4) 2022-10-12 09:43:17 +02:00
Lukas Matena
8af3e5823a Measurement: moving arrow-drawing functions from frontend to the backend (2/4) 2022-10-12 09:43:17 +02:00
Lukas Matena
9658c8c677 Measurement: moving arrow-drawing functions from frontend to the backend (1/4) 2022-10-12 09:43:17 +02:00
enricoturri1966
10459706b8 Fixed bug in get_measurement() function 2022-10-12 09:22:37 +02:00
enricoturri1966
19df0dadeb Fixed warnings 2022-10-12 09:22:35 +02:00
enricoturri1966
ed287215db Measuring: Added Measure gizmo imgui dialog + removed tech ENABLE_MEASURE_GIZMO_DEBUG + locking of features by pressing CTRL key 2022-10-12 09:22:34 +02:00
enricoturri1966
7b43786124 Added tech ENABLE_MEASURE_GIZMO_DEBUG to embed debug code related to GLGizmoMeasure 2022-10-12 09:10:52 +02:00
Lukas Matena
b646fcad95 Measuring: implemented edge endpoint detection 2022-10-12 09:10:51 +02:00
Lukas Matena
b23e28e9e4 Measuring: refactoring 2022-10-12 09:10:51 +02:00
Lukas Matena
387dfb2b79 Measuring: Add detection of polygons and their centers 2022-10-12 09:10:51 +02:00