36 bool triSurface::readSTL(
const fileName& STLfileName)
40 IFstream str(STLfileName);
46 firstToken = token(str);
49 if (firstToken.isWord())
51 word firstWord(firstToken.wordToken());
53 for (
size_t i = 0; i < firstWord.size(); i++)
55 firstWord[i] = std::toupper(firstWord[i]);
58 if (firstWord ==
"SOLID" || firstWord(5) ==
"SOLID")
60 return readSTLASCII(STLfileName);
64 return readSTLBINARY(STLfileName);