Creates a box geometry with the specified width, height, length, and chamfer radius.
SDKs
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
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
, it extends from -5
to 5
along in each of the x-, y-, and z-axes.