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