C# Class MeshExplorer.IO.FileProcessor

Provides static methods to read and write mesh files.
ファイルを表示 Open project: RegrowthStudios/VoxelRTS

Public Methods

Method 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

Method Description
CreateProviderInstance ( string ext ) : IMeshFile
GetProviderInstance ( string path ) : IMeshFile

Method Details

CanHandleFile() public static method

public static CanHandleFile ( string path ) : bool
path string
return bool

ContainsMeshData() public static method

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

Import() public static method

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

Read() public static method

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

Save() public static method

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