---
title: cornerSegmentCount
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnplane/cornersegmentcount
---

# cornerSegmentCount

The number of line segments used to create each rounded corner of the plane. Animatable.

## Declaration

```swift
var cornerSegmentCount: Int { get set }
```

## Discussion

Discussion A larger number of segments adds more vertex data to the geometry, creating a smoother curve for each rounded corner at a cost to rendering performance. The default corner segment count is 10. Setting this property’s value to a number less than 1 results in undefined behavior. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Related Documentation

- [heightSegmentCount](scenekit/scnplane/heightsegmentcount.md)
- [widthSegmentCount](scenekit/scnplane/widthsegmentcount.md)

### Adding Rounded Corners

- [cornerRadius](scenekit/scnplane/cornerradius.md)
