---
title: triangleCount
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkmeshgraph/trianglecount
---

# triangleCount

The number of triangles in the mesh.

## Declaration

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

## Discussion

Discussion This property’s value is valid only after calling the triangulate() to create a mesh around the current configuration of obstacles.

## See Also

### Managing the Mesh

- [triangulate()](gameplaykit/gkmeshgraph/triangulate().md)
- [triangulationMode](gameplaykit/gkmeshgraph/triangulationmode.md)
- [triangle(at:)](gameplaykit/gkmeshgraph/triangle(at:).md)
