mirror of
https://github.com/CloudCompare/PoissonRecon.git
synced 2026-08-29 16:40:28 +08:00
Initialize some uninitialized vars
This commit is contained in:
@@ -427,7 +427,7 @@ int Execute( int argc , char* argv[] )
|
||||
if( !fp ) fprintf( stderr , "Failed to open voxel file for writing: %s\n" , VoxelGrid.value );
|
||||
else
|
||||
{
|
||||
int res;
|
||||
int res = 0;
|
||||
Pointer( Real ) values = tree.Evaluate( ( ConstPointer( Real ) )solution , res , isoValue , VoxelDepth.value );
|
||||
fwrite( &res , sizeof(int) , 1 , fp );
|
||||
if( sizeof(Real)==sizeof(float) ) fwrite( values , sizeof(float) , res*res*res , fp );
|
||||
|
||||
@@ -265,7 +265,8 @@ int SparseMatrix<T>::SolveSymmetric( const SparseMatrix<T>& M , const Vector<T2>
|
||||
M.Multiply( solution , r );
|
||||
r = b - r;
|
||||
Vector< T2 > d = r;
|
||||
double delta_new , delta_0;
|
||||
double delta_new = 0.0;
|
||||
double delta_0 = 0.0;
|
||||
for( int i=0 ; i<r.Dimensions() ; i++ ) delta_new += r.m_pV[i] * r.m_pV[i];
|
||||
delta_0 = delta_new;
|
||||
if( delta_new<eps ) return 0;
|
||||
|
||||
Reference in New Issue
Block a user