Fixing PLY encoder for Windows builds.

This commit is contained in:
Ondrej Stava 2017-01-17 19:39:02 -08:00
parent 6bbe93511b
commit 259b198fcf

View File

@ -24,7 +24,7 @@ PlyEncoder::PlyEncoder()
bool PlyEncoder::EncodeToFile(const PointCloud &pc, bool PlyEncoder::EncodeToFile(const PointCloud &pc,
const std::string &file_name) { const std::string &file_name) {
std::ofstream file(file_name); std::ofstream file(file_name, std::ios::binary);
if (!file) if (!file)
return false; // File coulnd't be opened. return false; // File coulnd't be opened.
// Encode the mesh into a buffer. // Encode the mesh into a buffer.