---
title: flatness
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scntext/flatness
---

# flatness

A number that determines the accuracy or smoothness of the text geometry.

## Declaration

```swift
var flatness: CGFloat { get set }
```

## Discussion

Discussion SceneKit uses line segments to approximate the curved shapes of text characters when converting text into a three-dimensional geometry. (These segments become side polygons when SceneKit extrudes the text.) Higher flatness values result in fewer segments, reducing the smoothness of curves and improving rendering performance. Lower values result in more segments, increasing the smoothness of curves at a cost to rendering performance. The default value of this property is 0.6, specifying that the line segments may not deviate from the curve by more than 0.6 points.

## See Also

### Managing the Text’s 3D Representation

- [extrusionDepth](scenekit/scntext/extrusiondepth.md)
- [chamferRadius](scenekit/scntext/chamferradius.md)
- [chamferProfile](scenekit/scntext/chamferprofile.md)
