mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00
Fixing PLY encoder for Windows builds.
This commit is contained in:
parent
6bbe93511b
commit
259b198fcf
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user