Skip to content
Snippets Groups Projects
Commit e0824b96 authored by laurence's avatar laurence
Browse files

BUG: objToVTK: Do not print vertex normal header in vtk if none are in the obj

parent 8ce75feb
No related branches found
No related tags found
No related merge requests found
...@@ -273,12 +273,16 @@ int main(int argc, char *argv[]) ...@@ -273,12 +273,16 @@ int main(int argc, char *argv[])
} }
} }
outFile << nl << "NORMALS pointNormals float\n"; if (!pointNormals.empty())
forAll(pointNormals, i)
{ {
const vector& n = pointNormals[i]; outFile << nl << "NORMALS pointNormals float\n";
outFile << n.x() << ' ' << n.y() << ' ' << n.z() << nl; forAll(pointNormals, i)
{
const vector& n = pointNormals[i];
outFile << n.x() << ' ' << n.y() << ' ' << n.z() << nl;
}
} }
Info<< "End\n" << endl; Info<< "End\n" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment