---
Product: Aspose.3D
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/net/vertexelementmaterial
---

# VertexElementMaterial

## Overview

`VertexElementMaterial` is a class in Aspose.3D FOSS for .NET.
Inherits from: `VertexElement`, `IIndexedVertexElement`.

Defines material index for specified components.

This class provides 4 methods for working with VertexElementMaterial objects in .NET programs.
Available methods include: `Clear`, `SetIndices`, `ToString`, `VertexElementMaterial`.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: `Indices`, `MappingMode`, `Name`, `ReferenceMode`, `VertexElementType`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `VertexElementType` | `VertexElementType` | Read | Gets the type of the |
| `Name` | `string` | Read/Write | Gets or sets the name. |
| `MappingMode` | `MappingMode` | Read/Write | Gets or sets how the element is mapped. |
| `ReferenceMode` | `ReferenceMode` | Read/Write | Gets or sets how the element is referenced. |
| `Indices` | `IArrayList<int>` | Read | Gets the indices data |

## Methods

| Signature | Description |
|-----------|-------------|
| `VertexElementMaterial()` | Initializes a new instance of the VertexElementMaterial class. |
| `Clear()` | Removes all elements from the direct and the index arrays. |
| `SetIndices(data: int[])` | Sets the indices data |
| `ToString()` | String representation of vertex element. |

## See Also
- [Aspose.3D for .NET — Enterprise API Reference](https://reference.aspose.com/3d/net/aspose.threed.entities/vertexelementmaterial/)