C# Class HelixToolkit.Wpf.ObjReader.MaterialDefinition

A material definition.
The file format is documented in http://en.wikipedia.org/wiki/Material_Template_Library.
ファイルを表示 Open project: inventhelp/helix-toolkit

Public Methods

Method Description
GetMaterial ( string texturePath ) : System.Windows.Media.Media3D.Material

Gets the material from the specified path.

MaterialDefinition ( string name ) : System

Initializes a new instance of the MaterialDefinition class.

Private Methods

Method Description
CreateMaterial ( string texturePath ) : System.Windows.Media.Media3D.Material

Creates the material.

CreateTextureBrush ( string path ) : System.Windows.Media.ImageBrush

Creates a texture brush.

Method Details

GetMaterial() public method

Gets the material from the specified path.
public GetMaterial ( string texturePath ) : System.Windows.Media.Media3D.Material
texturePath string /// The texture path. ///
return System.Windows.Media.Media3D.Material

MaterialDefinition() public method

Initializes a new instance of the MaterialDefinition class.
public MaterialDefinition ( string name ) : System
name string The name.
return System