Instance Property

innerRadius

The radius of the circular hole through the tube. Animatable.

Declaration

var innerRadius: CGFloat { get set }

Discussion

The tube is centered in its local coordinate system. For example, if a tube has an inner radius of 1.0, the cylindrical hole through its center extends from -0.5 to 0.5 along the x- and z-axes. The default inner radius is 0.25.

An inner radius of zero or less, or equal to or greater than the outer radius, creates an empty geometry.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Adjusting a Tube’s Dimensions

var outerRadius: CGFloat

The radius of the tube’s outer circular cross section. Animatable.

var height: CGFloat

The extent of the tube along its y-axis. Animatable.