Controllers/AbstractExportController.cs
/// <summary>
/// Export a list of renderable meshes to an OBJ file.
/// </summary>
/// <param name="meshes">The meshes to export.</param>
/// <param name="filePath">The path to export the OBJ file to.</param>
Export a list of renderable meshes to an OBJ file.
Export a list of renderable meshes to an OBJ file .
public void ExportOBJ(IEnumerable<IRenderable> meshes, string filePath)
        {
            Log.Information($"Exporting OBJ meshes to: {filePath}");
            if (String.IsNullOrEmpty(Path.GetExtension(filePath)))
            {
                filePath += ".obj";
            }
            var objFile = MeshUtil.RenderableListToObjFile(meshes);
            File.WriteAllText(filePath, objFile);
        }
public void ExportOBJ ( IEnumerable < IRenderable > meshes , string filePath ) { Log . Information ( $" Exporting OBJ meshes to:  { filePath } " ) ; if ( String . IsNullOrEmpty ( Path . GetExtension ( filePath ) ) ) { filePath += " " ; } var objFile = MeshUtil . RenderableListToObjFile ( meshes ) ; File . WriteAllText ( filePath , objFile ) ; }
Export a list of renderable meshes to an OBJ file.
Export a list of renderable meshes to an OBJ file .
meshes
IEnumerable<IRenderable>
The meshes to export.
The meshes to export .
filePath
string
The path to export the OBJ file to.
The path to export the OBJ file to .