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

# Vertex

## Overview

`Vertex` is a class in Aspose.3D FOSS for Java.
Inherits from: `Comparable<Vertex>`.

Vertex reference, used to access the raw vertex in TriMesh.

This class provides 10 methods for working with Vertex objects in Java programs.
Available methods include: `Vertex`, `compareTo`, `readDouble`, `readFVector2`, `readFVector3`, `readFVector4`, `readFloat`, `readVector2`, `readVector3`, `readVector4`.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Vertex()` | Calls Vertex on this Vertex instance. |
| `compareTo(other: Vertex)` → `int` | Compare the vertex with another vertex instance
 @param other Another vertex to compare
 @return 0 if equal, negative if less than, positive if greater than
 / |
| `readVector4(field: VertexField)` → `Vector4` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector4 field
 @param field The field with a Vector4/FVector4 data type
 @return The vector4 value
 / |
| `readFVector4(field: VertexField)` → `FVector4` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector4 field
 @param field The field with a Vector4/FVector4 data type
 @return The FVector4 value
 / |
| `readVector3(field: VertexField)` → `Vector3` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector3 field
 @param field The field with a Vector3/FVector3 data type
 @return The vector3 value
 / |
| `readFVector3(field: VertexField)` → `FVector3` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector3 field
 @param field The field with a Vector3/FVector3 data type
 @return The FVector3 value
 / |
| `readVector2(field: VertexField)` → `Vector2` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector2 field
 @param field The field with a Vector2/FVector2 data type
 @return The vector2 value
 / |
| `readFVector2(field: VertexField)` → `FVector2` | **Not implemented in the FOSS edition — throws at runtime.** Read the vector2 field
 @param field The field with a Vector2/FVector2 data type
 @return The FVector2 value
 / |
| `readDouble(field: VertexField)` → `double` | **Not implemented in the FOSS edition — throws at runtime.** Read the double field
 @param field The field with a float/double compatible data type
 @return The double value
 / |
| `readFloat(field: VertexField)` → `float` | **Not implemented in the FOSS edition — throws at runtime.** Read the float field
 @param field The field with a float/double compatible data type
 @return The float value
 / |

## See Also
- [Aspose.3D for Java — Enterprise API Reference](https://reference.aspose.com/3d/java/com.aspose.threed/vertex/)