---
title: pipeSegmentCount
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scntorus/pipesegmentcount
---

# pipeSegmentCount

The number of subdivisions around the torus pipe. Animatable.

## Declaration

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

## Discussion

Discussion This segment count corresponds to the circle formed by the torus’ minor radius or pipeRadius property. A larger number of segments adds more vertex data to the geometry, creating a more smoothly curved surface at a cost to rendering performance. The default segment count is 24. Setting this property’s value to a number less than 3 results in undefined behavior. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Configuring Torus Properties

- [ringSegmentCount](scenekit/scntorus/ringsegmentcount.md)
