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

# VertexElementMaterial

## Overview

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

VertexElementMaterial.VertexElementMaterial creates a material vertex element using the given mapping and reference modes.

This class provides 9 methods for working with VertexElementMaterial objects in Java programs.
Available methods include: `VertexElementMaterial`, `clone`, `getData`, `getIndices`, `getMappingMode`, `getReferenceMode`, `getType`, `setData`, `setIndices`.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `data`, `indices`, `mappingMode`, `referenceMode`, `type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `type` | `VertexElementType` | Read | Gets the type. |
| `mappingMode` | `MappingMode` | Read | Gets the mapping mode. |
| `referenceMode` | `ReferenceMode` | Read | Gets the reference mode. |
| `indices` | `List` | Read | Gets the indices. |
| `data` | `List` | Read | Gets the data. |

## Methods

| Signature | Description |
|-----------|-------------|
| `VertexElementMaterial(mappingMode: MappingMode, referenceMode: ReferenceMode)` | Creates a material vertex element using the given mapping and reference modes |
| `getType()` → `VertexElementType` | Returns the type. |
| `getMappingMode()` → `MappingMode` | Returns the mapping mode. |
| `getReferenceMode()` → `ReferenceMode` | Returns the reference mode. |
| `getIndices()` → `List` | Returns the indices. |
| `getData()` → `List` | Returns the data. |
| `setData(data: List)` | Sets the data value. |
| `setIndices(indices: List)` | Sets the indices value. |
| `clone()` → `VertexElement` | Calls clone on this VertexElementMaterial instance. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)