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

Function SaveMesh

Source/URLab/Public/Utils/MeshUtils.h:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89template <typename VertexType, typename IndexType>
90int SaveMesh(const FString& FilePath, const Chaos::TArrayCollectionArray<VertexType>& Vertices,
91 const TArray<Chaos::TVector<IndexType, 3>>& Indices, bool ComplexMeshRequired, float Threshold = 0.05f)
92{
93 if (ComplexMeshRequired)
94 return MeshUtils::SaveMeshAsOBJComplex(FilePath, Vertices, Indices, Threshold);
95
96 return MeshUtils::SaveMeshAsOBJSimple(FilePath, Vertices, Indices);
97}
98
99} // namespace MeshUtils

Callers 2

DecomposeMeshMethod · 0.85
PrepareMeshForMuJoCoMethod · 0.85

Calls 2

SaveMeshAsOBJComplexFunction · 0.85
SaveMeshAsOBJSimpleFunction · 0.85

Tested by 1

PrepareMeshForMuJoCoMethod · 0.68