We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8dd9eb + 8b2f025 commit b561a52Copy full SHA for b561a52
1 file changed
opensfm/io.py
@@ -82,6 +82,10 @@ def shot_from_json(key, obj, cameras):
82
shot.covariance = np.array(obj['covariance'])
83
if 'merge_cc' in obj:
84
shot.merge_cc = obj['merge_cc']
85
+ if 'vertices' in obj and 'faces' in obj:
86
+ shot.mesh = types.ShotMesh()
87
+ shot.mesh.vertices = obj['vertices']
88
+ shot.mesh.faces = obj['faces']
89
90
return shot
91
0 commit comments