<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARGeometryElement/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:So17ARGeometryElementC5ARKitEySays5Int32VGSicip"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Provides an array of vertex indices that respresents the geometric primitive at the subscripted index.

```
@nonobjc subscript(index: Int) -> [Int32] { get }
```

## Discussion

This subscript operates on geometry elements of type <doc://com.apple.documentation/documentation/Swift/Int32> with `4` [`bytesPerIndex`](/documentation/ARKit/ARGeometryElement/bytesPerIndex). In the case of the [`faces`](/documentation/ARKit/ARMeshGeometry/faces) property, this operator returns an array of size `3`. The contents of the array are vertex indices that compose a triangle primitive, which represents the face identified by the argument face index.

---

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)