MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / next_line

Function next_line

src/IO/OFFParser.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace OFFParserHelper {
15 void next_line(std::ifstream& fin, char* line, size_t LINE_SIZE) {
16 do {
17 if (fin.eof()) {
18 throw IOError("Error parsing OFF file");
19 }
20 fin.getline(line, LINE_SIZE);
21 } while(strlen(line) == 0 || line[0] == '#' ||
22 line[0] == '\n' || line[0] == '\r');
23 }
24
25 size_t lookup_color_index(const std::string& name) {
26 if (name == "red") return 0;

Callers 6

parseMethod · 0.70
parse_verticesMethod · 0.70
parse_elementsMethod · 0.70
parse_verticesMethod · 0.70
parse_facesMethod · 0.70
parseMethod · 0.70

Calls 1

IOErrorClass · 0.85

Tested by

no test coverage detected