<!--
{
  "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/SCNShape",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNShape"
  },
  "title" : "SCNShape"
}
-->

# SCNShape

A geometry based on a two-dimensional path, optionally extruded to create a three-dimensional object.

```
class SCNShape
```

## Overview

SceneKit creates a three-dimensional geometry by extruding a Bézier path, which extends in the x- and y-axis directions of its local coordinate space, along the z-axis by a specified amount. For example, if you create a shape with an extrusion depth of `1.0`, it extends from `-0.5` to `0.5` along the z-axis. An extrusion depth of zero creates a flat, one-sided shape—the geometry is confined to the plane whose z-coordinate is `0.0`, and viewable only from its front unless its material’s [`isDoubleSided`](/documentation/SceneKit/SCNMaterial/isDoubleSided) property is <doc://com.apple.documentation/documentation/Swift/true>.

A shape geometry may contain between one and five geometry elements:

- If its [`extrusionDepth`](/documentation/SceneKit/SCNShape/extrusionDepth) property is `0.0`, the shape geometry has one element corresponding to its one visible side.
- If its extrusion depth is greater than zero and its [`chamferRadius`](/documentation/SceneKit/SCNShape/chamferRadius) property is `0.0`, the shape geometry has three elements, corresponding to its front, back, and extruded sides.
- If both extrusion depth and chamfer radius are greater than zero, the text geometry can have four or five elements depending on its [`chamferMode`](/documentation/SceneKit/SCNShape/chamferMode) property, corresponding to its front, back, extruded sides, front chamfer, and back chamfer.

SceneKit can render each element using a different material. For details, see the description of the [`materials`](/documentation/SceneKit/SCNGeometry/materials) property in [`SCNGeometry`](/documentation/SceneKit/SCNGeometry).

## Topics

### Creating a Shape

[`+  shapeWithPath:extrusionDepth:`](/documentation/SceneKit/SCNShape/init(path:extrusionDepth:))

Creates a shape geometry with the specified path and extrusion depth.

### Modifying a Shape

[`extrusionDepth`](/documentation/SceneKit/SCNShape/extrusionDepth)

The thickness of the extruded shape along the z-axis. Animatable.

[`path`](/documentation/SceneKit/SCNShape/path)

The two-dimensional path forming the basis of the shape.

### Chamfering a Shape

[`chamferMode`](/documentation/SceneKit/SCNShape/chamferMode)

A constant specifying which ends of the extruded shape’s profile are chamfered.

[`SCNChamferMode`](/documentation/SceneKit/SCNChamferMode)

Options for which edges of an extruded shape are chamfered, used by the [`chamferMode`](/documentation/SceneKit/SCNShape/chamferMode) property.

[`chamferProfile`](/documentation/SceneKit/SCNShape/chamferProfile)

A path that determines the cross-sectional contour of each chamfered edge.

[`chamferRadius`](/documentation/SceneKit/SCNShape/chamferRadius)

The width or depth of each chamfered edge. Animatable.

## Relationships

### Inherits From

[`SCNGeometry`](/documentation/SceneKit/SCNGeometry)

### Conforms To

[`SCNShadable`](/documentation/SceneKit/SCNShadable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`SCNAnimatable`](/documentation/SceneKit/SCNAnimatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`SCNBoundingVolume`](/documentation/SceneKit/SCNBoundingVolume)

[`NSCoding`](/documentation/Foundation/NSCoding)

---

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)