mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
[Viewer3D] SfmDataLoader: Add comment to explain magic number
This commit is contained in:
parent
e0ebf1446d
commit
7d0ff8ccbb
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ SfmDataEntity {
|
|||
for (var i = 0; i < root.cameras.length; i++) {
|
||||
var cam = root.cameras[i]
|
||||
var resectionId = cam.resectionId
|
||||
// 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
|
||||
if (resectionId === undefined || resectionId === 4294967295)
|
||||
continue
|
||||
if (resectionId > maxResectionId)
|
||||
|
@ -60,6 +61,7 @@ SfmDataEntity {
|
|||
for (var i = 0; i < root.cameras.length; i++) {
|
||||
var cam = root.cameras[i]
|
||||
var resectionId = cam.resectionId
|
||||
// 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
|
||||
if (resectionId === undefined || resectionId === 4294967295)
|
||||
continue
|
||||
arr[resectionId] = arr[resectionId] + 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue