---
title: chamferSegmentCount
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnbox/chamfersegmentcount
---

# chamferSegmentCount

The number of line segments used to create each rounded edge of the box. Animatable.

## Declaration

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

## Discussion

Discussion A larger number of segments adds more vertex data to the geometry, creating a smoother curve for each rounded edge and 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/scnbox/heightsegmentcount.md)
- [widthSegmentCount](scenekit/scnbox/widthsegmentcount.md)
- [lengthSegmentCount](scenekit/scnbox/lengthsegmentcount.md)

### Adding Rounded Edges and Corners

- [chamferRadius](scenekit/scnbox/chamferradius.md)
