Skip to content

Commit

Permalink
Add writing empty face in ply writer
Browse files Browse the repository at this point in the history
Fix loading ply file by loadPolygonFilePLY as vtk requires face element
  • Loading branch information
tin1254 committed May 25, 2021
1 parent b19c99a commit 42074a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions io/src/ply_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ pcl::PLYWriter::generateHeader (const pcl::PCLPointCloud2 &cloud,
}
}

// vtk requires face entry to load PLY
oss << "\nelement face 0";

if (use_camera)
{
oss << "\nelement camera 1"
Expand Down

0 comments on commit 42074a2

Please sign in to comment.