MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / meshSkinning

Function meshSkinning

Tools/MeshSkinning/main.cpp:923–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923void 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
967void exportOBJ()

Callers 1

performMeshSkinningFunction · 0.85

Calls 5

readFrameFunction · 0.85
computeFFunction · 0.85
deformMeshFunction · 0.85
convertFileNameFunction · 0.70
writeCurrentFrameFunction · 0.70

Tested by

no test coverage detected