<!--
{
  "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/SCNBox/init(width:height:length:chamferRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNBox(cm)boxWithWidth:height:length:chamferRadius:"
  },
  "title" : "init(width:height:length:chamferRadius:)"
}
-->

# init(width:height:length:chamferRadius:)

Creates a box geometry with the specified width, height, length, and chamfer radius.

```
convenience init(width: CGFloat, height: CGFloat, length: CGFloat, chamferRadius: CGFloat)
```

## Parameters

`width`

The width of the box along the x-axis of its local coordinate space.

`height`

The height of the box along the y-axis of its local coordinate space.

`length`

The length of the box along the z-axis of its local coordinate space.

`chamferRadius`

The radius of curvature for the edges and corners of the box.

## Return Value

A new box geometry.

## Discussion

The box is centered in its local coordinate system. For example, if you create a box whose width, height and length are all `10.0`, it extends from `-5.0` to `5.0` along in each of the x-, y-, and z-axes.

---

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)