<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNTorus/init(ringRadius:pipeRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNTorus(cm)torusWithRingRadius:pipeRadius:"
  },
  "title" : "init(ringRadius:pipeRadius:)"
}
-->

# init(ringRadius:pipeRadius:)

Creates a torus geometry with the specified ring radius and pipe radius.

```
convenience init(ringRadius: CGFloat, pipeRadius: CGFloat)
```

## Parameters

`ringRadius`

The major radius of the torus, defining its circular ring in the x- and z-axis dimensions of its local coordinate space.

`pipeRadius`

The minor radius of the torus, defining the pipe that encircles the ring.

## Return Value

A new torus geometry.

## Discussion

The torus is centered in its local coordinate system. For example, if you create a torus whose ring radius is `5.0` and pipe radius is `1.0`, it extends from `-6.0` to `6.0` (with a hole through the center from `-4.0` to `4.0`) in the x- and z-axes and from `-1.0` to `1.0` in the y-axis.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)