---
title: CapturedRoom.Surface
framework: roomplan
role: symbol
role_heading: Structure
path: roomplan/capturedroom/surface
---

# CapturedRoom.Surface

A 2D area in a room that the framework identifies as a surface.

## Declaration

```swift
struct Surface
```

## Overview

Overview A captured room (CapturedRoom) contains an arrays of surfaces that it identifies in a scan, such as its doors, openings, walls, and windows.

## Topics

### Creating a surface

- [init(from:)](roomplan/capturedroom/surface/init(from:).md)

### Identifying a surface

- [identifier](roomplan/capturedroom/surface/identifier.md)
- [parentIdentifier](roomplan/capturedroom/surface/parentidentifier.md)
- [category](roomplan/capturedroom/surface/category-swift.property.md)
- [CapturedRoom.Surface.Category](roomplan/capturedroom/surface/category-swift.enum.md)
- [confidence](roomplan/capturedroom/surface/confidence.md)

### Positioning and sizing a surface

- [transform](roomplan/capturedroom/surface/transform.md)
- [dimensions](roomplan/capturedroom/surface/dimensions.md)
- [story](roomplan/capturedroom/surface/story.md)

### Shaping a surface

- [completedEdges](roomplan/capturedroom/surface/completededges.md)
- [CapturedRoom.Surface.Edge](roomplan/capturedroom/surface/edge.md)
- [curve](roomplan/capturedroom/surface/curve-swift.property.md)
- [CapturedRoom.Surface.Curve](roomplan/capturedroom/surface/curve-swift.struct.md)
- [polygonCorners](roomplan/capturedroom/surface/polygoncorners.md)

### Serializing a surface

- [encode(to:)](roomplan/capturedroom/surface/encode(to:).md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Inspecting room details

- [identifier](roomplan/capturedroom/identifier.md)
- [story](roomplan/capturedroom/story.md)
- [floors](roomplan/capturedroom/floors.md)
- [doors](roomplan/capturedroom/doors.md)
- [objects](roomplan/capturedroom/objects.md)
- [CapturedRoom.Object](roomplan/capturedroom/object.md)
- [openings](roomplan/capturedroom/openings.md)
- [walls](roomplan/capturedroom/walls.md)
- [windows](roomplan/capturedroom/windows.md)
- [sections](roomplan/capturedroom/sections.md)
- [CapturedRoom.Section](roomplan/capturedroom/section.md)
- [CapturedRoom.Confidence](roomplan/capturedroom/confidence.md)
- [version](roomplan/capturedroom/version.md)
