Fix example that was using the old interface to VTKDataSetWriter

As a bonus, fix a compiler warning about an unused typedef.
This commit is contained in:
Kenneth Moreland 2016-03-17 09:13:25 -06:00
parent 6aaf85baa6
commit f81e8c642f
2 changed files with 2 additions and 5 deletions

@ -105,9 +105,8 @@ int main(int argc, char *argv[])
<< "process scalars: " << processScalarsTime << std::endl
<< "Total: " << totalTime << std::endl;
std::ofstream outFile(argv[argc - 1]);
vtkm::io::writer::VTKDataSetWriter::Write(outFile, output);
outFile.close();
vtkm::io::writer::VTKDataSetWriter writer(argv[argc - 1]);
writer.WriteDataSet(output);
return 0;
}

@ -230,8 +230,6 @@ void mouseCall(int button, int state, int x, int y)
// Compute and render an isosurface for a uniform grid example
int main(int argc, char* argv[])
{
typedef vtkm::cont::CellSetStructured<3> CellSet;
vtkm::cont::DataSet dataSet = MakeIsosurfaceTestDataSet(dims);
vtkm::filter::MarchingCubes filter;