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,
const std::string &file_name) {
std::ofstream file(file_name);
std::ofstream file(file_name, std::ios::binary);
if (!file)
return false; // File coulnd't be opened.
// Encode the mesh into a buffer.