Commit 62655ff0 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: not closing files.

parent 1126ed17
......@@ -79,6 +79,7 @@ void vtkBYUReader::Execute()
else
{
this->ReadGeometryFile(geomFp,numPts);
fclose(geomFp);
}
this->ReadDisplacementFile(numPts);
......@@ -202,6 +203,7 @@ void vtkBYUReader::ReadDisplacementFile(int numPts)
newVectors->SetVector(i,v);
}
fclose(dispFp);
vtkDebugMacro(<<"Read " << numPts << " displacements");
output->GetPointData()->SetVectors(newVectors);
......@@ -237,6 +239,7 @@ void vtkBYUReader::ReadScalarFile(int numPts)
newScalars->SetScalar(i,s);
}
fclose(scalarFp);
vtkDebugMacro(<<"Read " << numPts << " scalars");
output->GetPointData()->SetScalars(newScalars);
......@@ -272,6 +275,7 @@ void vtkBYUReader::ReadTextureFile(int numPts)
newTCoords->SetTCoord(i,t);
}
fclose(textureFp);
vtkDebugMacro(<<"Read " << numPts << " texture coordinates");
output->GetPointData()->SetTCoords(newTCoords);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment