<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARMeshGeometry/vertices",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARMeshGeometry(py)vertices"
  },
  "title" : "vertices"
}
-->

# vertices

The vertices of the mesh.

```
var vertices: ARGeometrySource { get }
```

## Discussion

The [`count`](/documentation/ARKit/ARGeometrySource/count) equals the total number of vertices. Since each vertex is the type `SIMD3<Float>`, [`componentsPerVector`](/documentation/ARKit/ARGeometrySource/componentsPerVector) is three.

The following code demonstrates retrieving a vertex at a particular index.

```swift
extension ARMeshGeometry { 
    func vertex(at index: UInt32) -> SIMD3<Float> {
        assert(vertices.format == MTLVertexFormat.float3, "Expected three floats (twelve bytes) per vertex.")
        let vertexPointer = vertices.buffer.contents().advanced(by: vertices.offset + (vertices.stride * Int(index)))
        let vertex = vertexPointer.assumingMemoryBound(to: SIMD3<Float>.self).pointee
        return vertex
    }
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)