---
title: vertexCount
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothmeshresource/vertexcount
---

# vertexCount

The number of vertices in the mesh.

## Declaration

```swift
final var vertexCount: Int { get }
```

## See Also

### Accessing vertex data

- [positions](realitykit/clothmeshresource/positions.md)
- [position(at:)](realitykit/clothmeshresource/position(at:).md)
- [withPositions(_:)](realitykit/clothmeshresource/withpositions(_:).md)
- [vertexIndex(at:)](realitykit/clothmeshresource/vertexindex(at:).md)
- [vertexIndex(primitive:vertex:)](realitykit/clothmeshresource/vertexindex(primitive:vertex:).md)
- [vertices(in:center:orientation:)](realitykit/clothmeshresource/vertices(in:center:orientation:).md)
