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

# ARGeometrySource

Mesh data in a buffer-based array.

```
class ARGeometrySource
```

## Overview

Mesh-anchor geometry ([`ARMeshGeometry`](/documentation/ARKit/ARMeshGeometry)) uses geometry sources to hold 3D data like vertices, and normals, in an efficent, array-like format. A Metal buffer wraps the data, and other properties specify  how to interpret that data.

In the case that [`componentsPerVector`](/documentation/ARKit/ARGeometrySource/componentsPerVector) is greater than 1, the element type of the geometry-source array is itself a sequence (pairs, triplets, and so on).

## Topics

### Accessing Geometry

[`subscript(_:)`](/documentation/ARKit/ARGeometrySource/subscript(_:)-3v98f)

Provides the source float triplet at the subscripted index.

[`subscript(_:)`](/documentation/ARKit/ARGeometrySource/subscript(_:)-7jf4y)

Provides the number at the subscripted index.

[`buffer`](/documentation/ARKit/ARGeometrySource/buffer)

A Metal buffer that contains a list of vectors.

### Getting Geometry Information

[`componentsPerVector`](/documentation/ARKit/ARGeometrySource/componentsPerVector)

The number of scalar components in each vector.

[`count`](/documentation/ARKit/ARGeometrySource/count)

The number of vectors in the buffer.

[`format`](/documentation/ARKit/ARGeometrySource/format)

The type of vector data in the buffer.

[`offset`](/documentation/ARKit/ARGeometrySource/offset)

The offset, in bytes, from the beginning of the buffer.

[`stride`](/documentation/ARKit/ARGeometrySource/stride)

The length, in bytes, of the start of one vector in the buffer to the start of the next vector.



---

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)