---
title: "MeshResource.ShapeExtrusionOptions.ExtrusionMethod.linear(depth:)"
framework: realitykit
role: symbol
role_heading: Case
path: "realitykit/meshresource/shapeextrusionoptions/extrusionmethod-swift.enum/linear(depth:)"
---

# MeshResource.ShapeExtrusionOptions.ExtrusionMethod.linear(depth:)

Extrudes the shape with a linear extrusion in Z by the desired depth.

## Declaration

```swift
case linear(depth: Float)
```

## Discussion

Discussion For example an extrusion that has a linear depth of 0.6 meters: var extrusionOptions = ShapeExtrusionOptions() extrusionOptions.extrusionMethod = .linear(depth: 0.6)

You can also use MeshResource.ShapeExtrusionOptions.ExtrusionMethod.tracePositions(_:) an equivalent way. .tracePositions([     [0, 0, -depth/2],     [0, 0,  depth/2] )
