ModelLoaderOBJ::LINES ModelLoaderOBJ::stripComments(const LINES &lines) { LINES result; for (LINES::const_iterator i = lines.begin(); i != lines.end(); ++i) { if (!isLineCommented(*i)) { result.push_back(*i); } } return result; }
ModelLoaderOBJ::LINES ModelLoaderOBJ::filterAllowLines(const LINES &lines, const string &type) { LINES result; for (LINES::const_iterator i = lines.begin(); i != lines.end(); ++i) { if (isLineOfType(*i, type)) { result.push_back(*i); } } return result; }