C# Class HelixToolkit.Wpf.ObjReader.MaterialDefinition

A material definition.
The file format is documented in http://en.wikipedia.org/wiki/Material_Template_Library.
Afficher le fichier Open project: inventhelp/helix-toolkit

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

MaterialDefinition() public méthode

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