Skip to content

Commit bb9195f

Browse files
authored
Merge pull request #2257 from alicevision/fix/displayResections
[Viewer3D] Bind the display status of the resection groups to QtAliceVision
2 parents df7de6d + 7d0ff8c commit bb9195f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

meshroom/ui/qml/Viewer3D/MediaLoader.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ import Utils 1.0
100100
'pointSize': Qt.binding(function() { return 0.01 * Viewer3DSettings.pointSize }),
101101
'locatorScale': Qt.binding(function() { return Viewer3DSettings.cameraScale }),
102102
'cameraPickingEnabled': Qt.binding(function() { return root.enabled }),
103-
'resectionId': Qt.binding(function() { return Viewer3DSettings.resectionId })
103+
'resectionId': Qt.binding(function() { return Viewer3DSettings.resectionId }),
104+
'displayResections': Qt.binding(function() { return Viewer3DSettings.displayResectionIds })
104105
});
105106

106107
obj.statusChanged.connect(function() {

meshroom/ui/qml/Viewer3D/SfmDataLoader.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ SfmDataEntity {
4545
for (var i = 0; i < root.cameras.length; i++) {
4646
var cam = root.cameras[i]
4747
var resectionId = cam.resectionId
48+
// 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
4849
if (resectionId === undefined || resectionId === 4294967295)
4950
continue
5051
if (resectionId > maxResectionId)
@@ -60,6 +61,7 @@ SfmDataEntity {
6061
for (var i = 0; i < root.cameras.length; i++) {
6162
var cam = root.cameras[i]
6263
var resectionId = cam.resectionId
64+
// 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
6365
if (resectionId === undefined || resectionId === 4294967295)
6466
continue
6567
arr[resectionId] = arr[resectionId] + 1

0 commit comments

Comments
 (0)