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