commit
48fa3153c6
|
@ -436,7 +436,7 @@ bool PLY::DOM::ParseHeader (const char* pCur,const char** pCurOut,bool isBinary)
|
||||||
*pCurOut = pCur;
|
*pCurOut = pCur;
|
||||||
|
|
||||||
// parse all elements
|
// parse all elements
|
||||||
while (true)
|
while ((*pCur) != '\0')
|
||||||
{
|
{
|
||||||
// skip all comments
|
// skip all comments
|
||||||
PLY::DOM::SkipComments(pCur,&pCur);
|
PLY::DOM::SkipComments(pCur,&pCur);
|
||||||
|
|
|
@ -308,6 +308,7 @@ void STLImporter::LoadASCIIFile()
|
||||||
{
|
{
|
||||||
if (3 == curVertex) {
|
if (3 == curVertex) {
|
||||||
DefaultLogger::get()->error("STL: a facet with more than 3 vertices has been found");
|
DefaultLogger::get()->error("STL: a facet with more than 3 vertices has been found");
|
||||||
|
++sz;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -326,8 +327,10 @@ void STLImporter::LoadASCIIFile()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// else skip the whole identifier
|
// else skip the whole identifier
|
||||||
else while (!::IsSpaceOrNewLine(*sz)) {
|
else {
|
||||||
|
do {
|
||||||
++sz;
|
++sz;
|
||||||
|
} while (!::IsSpaceOrNewLine(*sz));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue