---
title: "vertices(in:center:orientation:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/clothmeshresource/vertices(in:center:orientation:)"
---

# vertices(in:center:orientation:)

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

## Declaration

```swift
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

Return Value The indices of the vertices that lie inside the shape.

## See Also

### Accessing vertex data

- [vertexCount](realitykit/clothmeshresource/vertexcount.md)
- [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)
