Instance Property

cornerSegmentCount

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

Declaration

var cornerSegmentCount: Int { get set }

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

Adding Rounded Corners

var cornerRadius: CGFloat

The radius of curvature for the plane’s corners. Animatable.