<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothMeshResource/vertices(in:center:orientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C12MeshResourceC8vertices2in6center11orientationSays6UInt32VGAA0C11VolumeShapeO_s5SIMD3VySfGSo10simd_quatfatF"
  },
  "title" : "vertices(in:center:orientation:)"
}
-->

# vertices(in:center:orientation:)

Returns the indices of the vertices that lie inside the given volume shape.

```
final func vertices(in shape: ClothVolumeShape, center: SIMD3<Float> = SIMD3<Float>(repeating: 0), orientation: simd_quatf = simd_quatf(ix: 0, iy: 0, iz: 0, r: 1)) -> [UInt32]
```

## Parameters

`shape`

The volume shape to test vertices against.

`center`

The center position of the shape.

`orientation`

The orientation of the shape.

## Return Value

The indices of the vertices that lie inside the shape.

---

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)