mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: objToVTK: Do not print vertex normal header in vtk if none are in the obj
This commit is contained in:
@ -273,12 +273,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
outFile << nl << "NORMALS pointNormals float\n";
|
||||
forAll(pointNormals, i)
|
||||
if (!pointNormals.empty())
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user