Commit d2ae2bd4 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey
Browse files

binary import/export for SLF

parent 8aa6cff3
...@@ -584,7 +584,10 @@ bool exportPlySLFgenericBin(typename PFP::MAP& map, const typename PFP::TVEC3& p ...@@ -584,7 +584,10 @@ bool exportPlySLFgenericBin(typename PFP::MAP& map, const typename PFP::TVEC3& p
unsigned int nbe = *it++; unsigned int nbe = *it++;
out.write((char*)&nbe, sizeof(unsigned int)) ; out.write((char*)&nbe, sizeof(unsigned int)) ;
for(unsigned int j = 0; j < nbe; ++j) for(unsigned int j = 0; j < nbe; ++j)
out.write((char*)(&(*it++)), sizeof(unsigned int)) ; {
unsigned int index = *it++ ;
out.write((char*)(&index), sizeof(unsigned int)) ;
}
} }
out.close() ; out.close() ;
......
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