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

# VertexElement

## Overview

`VertexElement` is a class in Aspose.3D FOSS for Python.

VertexElement provides set_indices(data) to assign index buffers and clear() to reset its state.

This class declares 3 methods for VertexElement objects in Python programs.
Available methods include: `__init__`, `clear`, `set_indices`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `indices`, `mapping_mode`, `name`, `reference_mode`, `vertex_element_type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `vertex_element_type` | `'VertexElementType'` | Read | Gets the vertex element type. |
| `name` | `str` | Read/Write | Gets or sets the name. |
| `mapping_mode` | `'MappingMode'` | Read/Write | Gets or sets the mapping mode. |
| `reference_mode` | `'ReferenceMode'` | Read/Write | Gets or sets the reference mode. |
| `indices` | `List[int]` | Read | Gets the indices. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(element_type: 'VertexElementType', name: str, mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode')` | Calls __init__(element_type, name, mapping_mode, reference_mode) on this VertexElement instance. |
| `set_indices(data: List[int])` | Sets the indices value. |
| `clear()` | Removes all data from the element, resetting it to default state |

## See Also

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