C# Класс HelixToolkit.Wpf.ObjReader.MaterialDefinition

A material definition.
The file format is documented in http://en.wikipedia.org/wiki/Material_Template_Library.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateMaterial ( string texturePath ) : System.Windows.Media.Media3D.Material

Creates the material.

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

Creates a texture brush.

Описание методов

GetMaterial() публичный Метод

Gets the material from the specified path.
public GetMaterial ( string texturePath ) : System.Windows.Media.Media3D.Material
texturePath string /// The texture path. ///
Результат System.Windows.Media.Media3D.Material

MaterialDefinition() публичный Метод

Initializes a new instance of the MaterialDefinition class.
public MaterialDefinition ( string name ) : System
name string The name.
Результат System