Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!1760[io][pointcloudwriter] Misc. fixes
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment