Commit 61f7c623 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Close file immediately after writing.

parent e983052b
......@@ -129,6 +129,7 @@ void vtkSTLWriter::WriteAsciiSTL(vtkPoints *pts, vtkCellArray *polys)
fprintf (fp, " ENDLOOP\n ENDFACET\n");
}
fprintf (fp, "ENDSOLID\n");
fclose (fp);
}
void vtkSTLWriter::WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys)
......@@ -183,6 +184,7 @@ void vtkSTLWriter::WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys)
fwrite (&ibuff2, 2, 1, fp);
}
fclose (fp);
}
void vtkSTLWriter::PrintSelf(ostream& os, vtkIndent indent)
......
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