Open3DGC: Fix some uninitialized variable warnings

pull/1465/head
Turo Lamminen 2017-09-26 18:33:00 +03:00
parent c4e91eb33f
commit 45d93701f8
2 changed files with 3 additions and 3 deletions

View File

@ -425,7 +425,7 @@ namespace o3dgc
const AdjacencyInfo & v2T = m_triangleListDecoder.GetVertexToTriangle();
const T * const triangles = ifs.GetCoordIndex();
Vec3<long> p1, p2, p3, n0, nt;
long na0, nb0;
long na0 = 0, nb0 = 0;
Real rna0, rnb0, norm0;
char ni0 = 0, ni1 = 0;
long a, b, c;

View File

@ -762,8 +762,8 @@ namespace o3dgc
const Real * const originalNormals = ifs.GetNormal();
Vec3<long> p1, p2, p3, n0, nt;
Vec3<Real> n1;
long na0, nb0;
Real rna0, rnb0, na1, nb1, norm0, norm1;
long na0 = 0, nb0 = 0;
Real rna0, rnb0, na1 = 0, nb1 = 0, norm0, norm1;
char ni0 = 0, ni1 = 0;
long a, b, c, v;
m_predictors.Clear();