---
title: widthSegmentCount
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnplane/widthsegmentcount
---

# widthSegmentCount

The number of subdivisions in the plane’s surface along its horizontal axis. Animatable.

## Declaration

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

## Discussion

Discussion A larger number of segments adds more vertex data to the geometry. Although the plane is flat, extra vertices can be useful for lighting or other special effects. For example, you can add a GLSL source code snippet to the plane’s shaderModifiers property that modulates the position of each vertex. Adding vertices increases rendering cost, so use the minimal segment count that produces your desired visual effect. The default segment count is 1. Setting this property’s value to a number less than 1 results in undefined behavior. If the cornerRadius property’s value is greater than zero, the segment count applies to the area between corners. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Related Documentation

- [cornerSegmentCount](scenekit/scnplane/cornersegmentcount.md)

### Adjusting Geometric Detail

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