| 551 | } |
| 552 | |
| 553 | std::string convertFileName(const std::string &inputFileName, const unsigned int currentFrame) |
| 554 | { |
| 555 | std::string fileName = inputFileName; |
| 556 | std::string::size_type pos1 = fileName.find_first_of("#", 0); |
| 557 | if (pos1 == std::string::npos) |
| 558 | { |
| 559 | LOG_ERR << "# missing in file name."; |
| 560 | exit(1); |
| 561 | } |
| 562 | std::string::size_type pos2 = fileName.find_first_not_of("#", pos1); |
| 563 | std::string::size_type length = pos2 - pos1; |
| 564 | |
| 565 | std::string numberStr = zeroPadding(currentFrame, (unsigned int)length); |
| 566 | fileName.replace(pos1, length, numberStr); |
| 567 | return fileName; |
| 568 | } |
| 569 | |
| 570 | bool readFrame(std::vector<Vector3r>& x, const unsigned int frame) |
| 571 | { |
no test coverage detected