C# Class MeshExplorer.IO.FileProcessor

Provides static methods to read and write mesh files.
Afficher le fichier Open project: RegrowthStudios/VoxelRTS

Méthodes publiques

Méthode Description
CanHandleFile ( string path ) : bool
ContainsMeshData ( string path ) : bool

Returns true, if the given file contains mesh information.

Import ( string path ) : Mesh

Read a mesh from given file.

Read ( string path ) : InputGeometry

Read an input geometry from given file.

Save ( string path, Mesh mesh ) : void

Save the current mesh to given file.

Private Methods

Méthode Description
CreateProviderInstance ( string ext ) : IMeshFile
GetProviderInstance ( string path ) : IMeshFile

Method Details

CanHandleFile() public static méthode

public static CanHandleFile ( string path ) : bool
path string
Résultat bool

ContainsMeshData() public static méthode

Returns true, if the given file contains mesh information.
public static ContainsMeshData ( string path ) : bool
path string
Résultat bool

Import() public static méthode

Read a mesh from given file.
public static Import ( string path ) : Mesh
path string
Résultat TriangleNet.Mesh

Read() public static méthode

Read an input geometry from given file.
public static Read ( string path ) : InputGeometry
path string
Résultat TriangleNet.Geometry.InputGeometry

Save() public static méthode

Save the current mesh to given file.
public static Save ( string path, Mesh mesh ) : void
path string
mesh TriangleNet.Mesh
Résultat void