OpenMesh obj reader fix ( )
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@74 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -391,6 +391,9 @@ read(std::fstream& _in, BaseImporter& _bi, Options& _opt)
|
|||||||
std::stringstream tmp( vertex );
|
std::stringstream tmp( vertex );
|
||||||
tmp >> value;
|
tmp >> value;
|
||||||
|
|
||||||
|
// Clear vertex after finished reading the line
|
||||||
|
vertex="";
|
||||||
|
|
||||||
// Nothing to read here ( garbage at end of line )
|
// Nothing to read here ( garbage at end of line )
|
||||||
if ( tmp.fail() ) {
|
if ( tmp.fail() ) {
|
||||||
continue;
|
continue;
|
||||||
@@ -432,7 +435,8 @@ read(std::fstream& _in, BaseImporter& _bi, Options& _opt)
|
|||||||
// Prepare for reading next component
|
// Prepare for reading next component
|
||||||
++component;
|
++component;
|
||||||
|
|
||||||
} while ( vertex.find("/") != std::string::npos );
|
// Read until line does not contain any other info
|
||||||
|
} while ( !vertex.empty() );
|
||||||
|
|
||||||
component = 0;
|
component = 0;
|
||||||
nV++;
|
nV++;
|
||||||
|
|||||||
Reference in New Issue
Block a user