-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(test): unit test mock Fetching by using local file
- Loading branch information
1 parent
69d5ad8
commit 7510e15
Showing
35 changed files
with
1,540 additions
and
162 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"asset": { | ||
"version": "1.0" | ||
}, | ||
"geometricError": 70, | ||
"root": { | ||
"transform": [ | ||
0.9686356343768792, | ||
0.24848542777253735, | ||
0, | ||
0, | ||
-0.15986460744966327, | ||
0.623177611820219, | ||
0.765567091384559, | ||
0, | ||
0.19023226619126932, | ||
-0.7415555652213445, | ||
0.6433560667227647, | ||
0, | ||
1215011.9317263428, | ||
-4736309.3434217675, | ||
4081602.0044800863, | ||
1 | ||
], | ||
"refine": "ADD", | ||
"boundingVolume": { | ||
"box": [ | ||
0, | ||
0, | ||
10, | ||
50, | ||
0, | ||
0, | ||
0, | ||
50, | ||
0, | ||
0, | ||
0, | ||
10 | ||
] | ||
}, | ||
"geometricError": 0, | ||
"content": { | ||
"uri": "tile.b3dm" | ||
} | ||
}, | ||
"extensionsUsed": [ | ||
"3DTILES_batch_table_hierarchy" | ||
], | ||
"extensionsRequired": [ | ||
"3DTILES_batch_table_hierarchy" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"asset": { | ||
"version": "1.0" | ||
}, | ||
"geometricError": 500, | ||
"root": { | ||
"transform": [ | ||
96.86356343768793, | ||
24.848542777253734, | ||
0, | ||
0, | ||
-15.986465724980844, | ||
62.317780594908875, | ||
76.5566922962899, | ||
0, | ||
19.02322243409411, | ||
-74.15554020821229, | ||
64.3356267137516, | ||
0, | ||
1215107.7612304366, | ||
-4736682.902037748, | ||
4081926.095098698, | ||
1 | ||
], | ||
"boundingVolume": { | ||
"box": [ | ||
0, | ||
0, | ||
0, | ||
7.0955, | ||
0, | ||
0, | ||
0, | ||
3.1405, | ||
0, | ||
0, | ||
0, | ||
5.0375 | ||
] | ||
}, | ||
"geometricError": 1, | ||
"refine": "REPLACE", | ||
"content": { | ||
"uri": "dragon_low.b3dm" | ||
}, | ||
"children": [ | ||
{ | ||
"boundingVolume": { | ||
"box": [ | ||
0, | ||
0, | ||
0, | ||
7.0955, | ||
0, | ||
0, | ||
0, | ||
3.1405, | ||
0, | ||
0, | ||
0, | ||
5.0375 | ||
] | ||
}, | ||
"geometricError": 0.1, | ||
"content": { | ||
"uri": "dragon_medium.b3dm" | ||
}, | ||
"children": [ | ||
{ | ||
"boundingVolume": { | ||
"box": [ | ||
0, | ||
0, | ||
0, | ||
7.0955, | ||
0, | ||
0, | ||
0, | ||
3.1405, | ||
0, | ||
0, | ||
0, | ||
5.0375 | ||
] | ||
}, | ||
"geometricError": 0, | ||
"content": { | ||
"uri": "dragon_high.b3dm" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
234 changes: 234 additions & 0 deletions
234
test/data/unitTest/OrientedImage/cameraCalibration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
[ | ||
{ | ||
"id": 300, | ||
"rotation": [ | ||
-0.00205265, | ||
-0.999998, | ||
0.000732591, | ||
0.999997, | ||
-0.00205156, | ||
0.00149035, | ||
-0.00148884, | ||
0.000735648, | ||
0.999999 | ||
], | ||
"position": [ | ||
-0.000, | ||
-0.145, | ||
0.867 | ||
], | ||
"projection": [ | ||
1150.66785706630299, | ||
0, | ||
1030.29, | ||
0, | ||
1150.66785706630299, | ||
1024.96, | ||
0, | ||
0, | ||
1 | ||
], | ||
"size": [ | ||
2048, | ||
2048 | ||
], | ||
"distortion": { | ||
"pps": [ | ||
1042.178, | ||
1027.565 | ||
], | ||
"poly357": [ | ||
-1.33791587603751819E-7, | ||
3.47540977328314388E-14, | ||
-4.44103985918888078E-21 | ||
], | ||
"limit": 2079 | ||
} | ||
}, | ||
{ | ||
"id": 301, | ||
"mask": "images/mask301.jpg", | ||
"rotation": [ | ||
-0.999967, | ||
0.0057386, | ||
-0.00572497, | ||
-0.00572726, | ||
-0.000383448, | ||
0.999984, | ||
0.00573631, | ||
0.999983, | ||
0.000416302 | ||
], | ||
"position": [ | ||
0.062, | ||
-0.045, | ||
0.865 | ||
], | ||
"projection": [ | ||
1134.10249915110944, | ||
0, | ||
1036.59, | ||
0, | ||
1134.10249915110944, | ||
1027.39, | ||
0, | ||
0, | ||
1 | ||
], | ||
"size": [ | ||
2048, | ||
2048 | ||
], | ||
"distortion": { | ||
"pps": [ | ||
1042.178, | ||
1027.565 | ||
], | ||
"poly357": [ | ||
-1.40358671178762456E-7, | ||
3.68704437301178485E-14, | ||
-4.70823660788942483E-21 | ||
], | ||
"limit": 2065 | ||
} | ||
}, | ||
{ | ||
"id": 302, | ||
"rotation": [ | ||
0.0008499, | ||
-0.999978, | ||
-0.00664034, | ||
0.00460009, | ||
-0.00663636, | ||
0.999967, | ||
-0.999989, | ||
-0.000880418, | ||
0.00459435 | ||
], | ||
"position": [ | ||
-0.103, | ||
-0.086, | ||
0.867 | ||
], | ||
"projection": [ | ||
1129.96581598065382, | ||
0, | ||
1044.51, | ||
0, | ||
1129.96581598065382, | ||
1024.87, | ||
0, | ||
0, | ||
1 | ||
], | ||
"size": [ | ||
2048, | ||
2048 | ||
], | ||
"distortion": { | ||
"pps": [ | ||
1042.178, | ||
1027.565 | ||
], | ||
"poly357": [ | ||
-1.43584241381542442E-7, | ||
3.85479524108064982E-14, | ||
-5.0301787584825994E-21 | ||
], | ||
"limit": 2042 | ||
} | ||
}, | ||
{ | ||
"id": 303, | ||
"mask": "images/mask303.jpg", | ||
"rotation": [ | ||
0.999994, | ||
-0.000499298, | ||
-0.00349604, | ||
0.00349722, | ||
0.00238871, | ||
0.999991, | ||
-0.000490943, | ||
-0.999997, | ||
0.00239044 | ||
], | ||
"position": [ | ||
-0.060, | ||
-0.248, | ||
0.865 | ||
], | ||
"projection": [ | ||
1128.12363890680899, | ||
0, | ||
1027.81, | ||
0, | ||
1128.12363890680899, | ||
1023.82, | ||
0, | ||
0, | ||
1 | ||
], | ||
"size": [ | ||
2048, | ||
2048 | ||
], | ||
"distortion": { | ||
"pps": [ | ||
1042.178, | ||
1027.565 | ||
], | ||
"poly357": [ | ||
-1.43584241381542442E-7, | ||
3.85479524108064982E-14, | ||
-5.0301787584825994E-21 | ||
], | ||
"limit": 2042 | ||
} | ||
}, | ||
{ | ||
"id": 304, | ||
"rotation": [ | ||
-0.00375951, | ||
0.999979, | ||
0.00529837, | ||
-0.00301241, | ||
-0.0053097, | ||
0.999981, | ||
0.999988, | ||
0.00374348, | ||
0.0030323 | ||
], | ||
"position": [ | ||
0.100, | ||
-0.207, | ||
0.863 | ||
], | ||
"projection": [ | ||
1128.70551522705205, | ||
0, | ||
1037.71, | ||
0, | ||
1128.70551522705205, | ||
1015.36, | ||
0, | ||
0, | ||
1 | ||
], | ||
"size": [ | ||
2048, | ||
2048 | ||
], | ||
"distortion": { | ||
"pps": [ | ||
1042.178, | ||
1027.565 | ||
], | ||
"poly357": [ | ||
-1.4331013261463578E-7, | ||
3.77792882615437153E-14, | ||
-4.83479389959883182E-21 | ||
], | ||
"limit": 2056 | ||
} | ||
} | ||
] |
Oops, something went wrong.