---
title: geometryIndex
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnhittestresult/geometryindex
---

# geometryIndex

The index of the geometry element whose surface the search ray intersects.

## Declaration

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

## Discussion

Discussion Every SCNGeometry object contains one or more SCNGeometryElement objects that define how its vertices connect to form a surface. This property provides the index of the geometry element intersecting the search ray. For more information about that geometry element, use the geometry’s element(at:) method.

## See Also

### Retrieving Information About a Hit-Test Result

- [node](scenekit/scnhittestresult/node.md)
- [faceIndex](scenekit/scnhittestresult/faceindex.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)
