Commit e446d582 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey

binary import/export for SLF

parent bc185e45
...@@ -813,10 +813,12 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename, ...@@ -813,10 +813,12 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
fp.read(headerTab, CHNum) ; fp.read(headerTab, CHNum) ;
std::stringstream header(headerTab) ; std::stringstream header(headerTab) ;
std::cout << header.str() << std::endl ;
// Read quantities : #vertices, #faces, #properties, degree of polynomials // Read quantities : #vertices, #faces, #properties, degree of polynomials
std::string tag ; std::string tag ;
header >> tag; header >> tag ;
if (tag != std::string("ply")) // verify file type if (tag != std::string("ply")) // verify file type
{ {
CGoGNerr << filename << " is not a ply file !" << CGoGNout ; CGoGNerr << filename << " is not a ply file !" << CGoGNout ;
...@@ -864,8 +866,6 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename, ...@@ -864,8 +866,6 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
header >> tag ; header >> tag ;
} while (tag != std::string("end_header")) ; } while (tag != std::string("end_header")) ;
std::cout << header.str() << std::endl ;
/* /*
// Define containers // Define containers
AttributeHandler<typename PFP::VEC3> positions = m_map.template getAttribute<typename PFP::VEC3>(VERTEX, "position") ; AttributeHandler<typename PFP::VEC3> positions = m_map.template getAttribute<typename PFP::VEC3>(VERTEX, "position") ;
......
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