Commit d71ebd1f authored by Ken Martin's avatar Ken Martin
Browse files

fixed bug

parent a73ff1ee
......@@ -132,7 +132,7 @@ void vtkBYUWriter::WriteGeometryFile(FILE *geomFile, int numPts)
}
fprintf (geomFile, "%d %d %d %d\n", 1, numPts, numPolys, numEdges);
fprintf (geomFile, "%d %d", 1, numPolys);
fprintf (geomFile, "%d %d\n", 1, numPolys);
//
// Write data
//
......@@ -140,7 +140,7 @@ void vtkBYUWriter::WriteGeometryFile(FILE *geomFile, int numPts)
for (i=0; i < numPts; i++)
{
x = inPts->GetPoint(i);
fprintf(geomFile, "%e %e %e", x[0], x[1], x[2]);
fprintf(geomFile, "%e %e %e ", x[0], x[1], x[2]);
if ( (i % 2) ) fprintf(geomFile, "\n");
}
if ( (numPts % 2) ) fprintf(geomFile, "\n");
......
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