---
title: CapturedRoom.Section
framework: roomplan
role: symbol
role_heading: Structure
path: roomplan/capturedroom/section
---

# CapturedRoom.Section

An object that identifies a particular area in a captured room in relation to common types of room areas in a building.

## Declaration

```swift
struct Section
```

## Overview

Overview When RoomPlan recognizes a captured room as one of the common kinds of room areas, such as a living room, the framework adds an instance of this structure to the room’s sections array. The section instance provides: A label type for the common area (label), such as  CapturedRoom.Section.Label.livingRoom A center point (center), that generally locates the area within the room A story (story), that identifies a floor number for the area in the building In a larger room, the framework may identify multiple types of areas, for example, a kitchen and a dining room. In that case, the sections array contains both, CapturedRoom.Section.Label.kitchen and CapturedRoom.Section.Label.diningRoom, and their center points distinguish their individual locations within the room.

## Topics

### Creating a section

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

### Describing a section

- [label](roomplan/capturedroom/section/label-swift.property.md)
- [CapturedRoom.Section.Label](roomplan/capturedroom/section/label-swift.enum.md)

### Locating a section

- [story](roomplan/capturedroom/section/story.md)
- [center](roomplan/capturedroom/section/center.md)

### Serializing a section

- [encode(to:)](roomplan/capturedroom/section/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)
- [CapturedRoom.Surface](roomplan/capturedroom/surface.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.Confidence](roomplan/capturedroom/confidence.md)
- [version](roomplan/capturedroom/version.md)
