Material
Overview
Material is a class in Aspose.3D FOSS for .NET.
Inherits from: A3DObject, INamedObject, IEnumerable<TextureSlot>.
Material defines the parameters necessary for visual appearance of geometry.
This class provides 9 methods for working with Material objects in .NET programs.
Available methods include: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, RemoveProperty, SetProperty, SetTexture, ToString.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: MapAmbient, MapDiffuse, MapEmissive, MapNormal, MapSpecular, Name, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
MapSpecular | string | Read | Used in GetTexture/SetTexture to assign a specular texture mapping. |
MapDiffuse | string | Read | Used in GetTexture/SetTexture to assign a diffuse texture mapping. |
MapEmissive | string | Read | Used in GetTexture/SetTexture to assign a emissive texture mapping. |
MapAmbient | string | Read | Used in GetTexture/SetTexture to assign a ambient texture mapping. |
MapNormal | string | Read | Used in GetTexture/SetTexture to assign a normal texture mapping. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
GetTexture(slotName: string) | /// |
SetTexture(slotName: string, texture: TextureBase) | Sets the texture to specified slot. |
ToString() | Formats object to string. |
GetEnumerator() | Gets the enumerator to enumerate internal texture slots. |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. |