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