| 921 | } |
| 922 | |
| 923 | void meshSkinning() |
| 924 | { |
| 925 | currentFrame = startFrame; |
| 926 | std::string fileName = convertFileName(output, currentFrame); |
| 927 | if (overwriteExistingFiles || !FileSystem::fileExists(fileName)) |
| 928 | writeCurrentFrame(); |
| 929 | else |
| 930 | LOG_INFO << "Skipping file: " << fileName; |
| 931 | |
| 932 | bool chk = true; |
| 933 | while (chk) |
| 934 | { |
| 935 | std::string fileName = convertFileName(output, currentFrame); |
| 936 | if (!overwriteExistingFiles && FileSystem::fileExists(fileName)) |
| 937 | { |
| 938 | LOG_INFO << "Skipping file: " << fileName; |
| 939 | currentFrame++; |
| 940 | if (currentFrame > endFrame) |
| 941 | break; |
| 942 | continue; |
| 943 | } |
| 944 | |
| 945 | LOG_INFO << "Reading frame: " << currentFrame; |
| 946 | chk = readFrame(x, currentFrame); |
| 947 | if (!chk) |
| 948 | break; |
| 949 | |
| 950 | START_TIMING("computeF"); |
| 951 | computeF(); |
| 952 | STOP_TIMING_AVG; |
| 953 | |
| 954 | START_TIMING("deformMesh"); |
| 955 | deformMesh(); |
| 956 | STOP_TIMING_AVG; |
| 957 | |
| 958 | writeCurrentFrame(); |
| 959 | |
| 960 | currentFrame++; |
| 961 | if (currentFrame > endFrame) |
| 962 | break; |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | |
| 967 | void exportOBJ() |
no test coverage detected