Commit 1cfd4e10 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey

binary import/export for SLF

parent d2ae2bd4
......@@ -559,7 +559,7 @@ bool exportPlySLFgenericBin(typename PFP::MAP& map, const typename PFP::TVEC3& p
header << "end_header" << std::endl ;
size_t nbCharsOfHeader = header.str().size() ;
out.write((char*)nbCharsOfHeader, sizeof(size_t)) ;
out.write((char*)&nbCharsOfHeader, sizeof(size_t)) ;
out.write((char*)(header.str().c_str()), nbCharsOfHeader*sizeof(char)) ;
for(unsigned int i = 0; i < vertices.size(); ++i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment