Commit 5f665e56 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[io][pointcloudwriter] Only close PointData tag if there acutally are point data

parent 7591eee1
......@@ -138,22 +138,20 @@ public:
writeCoordinates_(file, coordinates_);
writeDataInfo_(file);
for(auto&& data : scalarPointData_)
{
for (auto&& data : scalarPointData_)
writeData_(file, data);
}
for(auto&& data :vectorPointData_)
{
for (auto&& data :vectorPointData_)
writeData_(file, data);
}
file << "</PointData>\n";
if (!scalarPointData_.empty() || !vectorPointData_.empty())
file << "</PointData>\n";
file << "</Piece>\n";
file << "</PolyData>\n";
file << "</VTKFile>";
clear();
file.close();
}
......
Supports Markdown
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