C# Class HoloToolkit.Unity.MeshSaver

MeshSaver is a static class containing methods used for saving and loading meshes.
Mostrar archivo Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Methods

Method Description
Load ( string fileName ) : IEnumerable

Loads the specified mesh file.

Determines the path from which to load and automatically applies the file extension.

Save ( string fileName, IEnumerable meshes ) : string

Saves the provided meshes to the specified file.

Determines the save path to use and automatically applies the file extension.

Private Methods

Method Description
OpenFileForRead ( string folderName, string fileName ) : Stream

Opens the specified file for reading.

OpenFileForWrite ( string folderName, string fileName ) : Stream

Opens the specified file for writing.

If the specified file already exists, it will be overwritten.

Method Details

Load() public static method

Loads the specified mesh file.
Determines the path from which to load and automatically applies the file extension.
public static Load ( string fileName ) : IEnumerable
fileName string Name of the saved mesh file. Exclude path and extension.
return IEnumerable

Save() public static method

Saves the provided meshes to the specified file.
Determines the save path to use and automatically applies the file extension.
public static Save ( string fileName, IEnumerable meshes ) : string
fileName string Name to give the saved mesh file. Exclude path and extension.
meshes IEnumerable The collection of Mesh objects to save.
return string