MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / LoadMeshHash

Function LoadMeshHash

Source/URLab/Public/Utils/IO.h:59–68  ·  view source on GitHub ↗

Load a previously saved hash. Returns empty string if not found. */

Source from the content-addressed store, hash-verified

57
58/** Load a previously saved hash. Returns empty string if not found. */
59inline FString LoadMeshHash(const FString& ObjFilePath)
60{
61 FString HashPath = FPaths::ChangeExtension(ObjFilePath, TEXT("hash"));
62 FString Hash;
63 if (FFileHelper::LoadFileToString(Hash, *HashPath))
64 {
65 return Hash.TrimStartAndEnd();
66 }
67 return FString();
68}
69
70/** Delete cached OBJ files (and hash) so they get re-exported. */
71inline void DeleteMeshCache(const FString& BaseFilePath, bool bComplex)

Callers 1

PrepareMeshForMuJoCoMethod · 0.85

Calls

no outgoing calls

Tested by 1

PrepareMeshForMuJoCoMethod · 0.68