Skip to content

Commit

Permalink
Follow sized_types for faces header.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 13, 2019
1 parent 0f5a56e commit ac997bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion io/PlyWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ void PlyWriter::writeHeader(PointLayoutPtr layout) const
if (m_faces)
{
*m_stream << "element face " << faceCount() << std::endl;
*m_stream << "property list uint8 uint32 vertex_indices" << std::endl;
if (m_sizedTypes)
*m_stream << "property list uint8 uint32 vertex_indices";
else
*m_stream << "property list uchar uint vertex_indices";
*m_stream << std::endl;
}
*m_stream << "end_header" << std::endl;
}
Expand Down

0 comments on commit ac997bf

Please sign in to comment.