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

# VertexDeclaration

## Overview

`VertexDeclaration` is a class in Aspose.3D FOSS for Java.
Inherits from: `Serializable`, `Iterable`.

This class provides 11 methods for working with VertexDeclaration objects in Java programs.
Available methods include: `VertexDeclaration`, `addField`, `clear`, `equals`, `get`, `getSize`, `hashCode`, `isSealed`, `iterator`, `size`, `toString`.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `sealed`, `size`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `sealed` | `boolean` | Read | Gets the sealed. |
| `size` | `int` | Read | Gets the size. |

## Methods

| Signature | Description |
|-----------|-------------|
| `VertexDeclaration()` | Calls VertexDeclaration on this VertexDeclaration instance. |
| `isSealed()` → `boolean` | Returns true if sealed is set. |
| `size()` → `int` | Calls size on this VertexDeclaration instance. |
| `get(index: int)` → `VertexField` | Calls get(index) on this VertexDeclaration instance. |
| `getSize()` → `int` | Returns the size. |
| `clear()` | Calls clear on this VertexDeclaration instance. |
| `addField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: int, alias: String)` → `VertexField` | Calls addField(dataType, semantic, index, alias) on this VertexDeclaration instance. |
| `iterator()` → `java.util.Iterator` | Calls iterator on this VertexDeclaration instance. |
| `hashCode()` → `int` | Calls hashCode on this VertexDeclaration instance. |
| `equals(obj: Object)` → `boolean` | Calls equals(obj) on this VertexDeclaration instance. |
| `toString()` → `String` | Calls toString on this VertexDeclaration instance. |

## See Also

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