---
title: faceIndex
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnhittestresult/faceindex
---

# faceIndex

The index of the primitive in the geometry element intersected by the search ray.

## Declaration

```swift
var faceIndex: Int { get }
```

## See Also

### Related Documentation

- [primitiveCount](scenekit/scngeometryelement/primitivecount.md)

### Retrieving Information About a Hit-Test Result

- [node](scenekit/scnhittestresult/node.md)
- [geometryIndex](scenekit/scnhittestresult/geometryindex.md)
- [localCoordinates](scenekit/scnhittestresult/localcoordinates.md)
- [worldCoordinates](scenekit/scnhittestresult/worldcoordinates.md)
- [localNormal](scenekit/scnhittestresult/localnormal.md)
- [worldNormal](scenekit/scnhittestresult/worldnormal.md)
- [modelTransform](scenekit/scnhittestresult/modeltransform.md)
- [textureCoordinates(withMappingChannel:)](scenekit/scnhittestresult/texturecoordinates(withmappingchannel:).md)
