| 88 | |
| 89 | template <typename VertexType, typename IndexType> |
| 90 | int 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 |