CapturedRoom
A structure that provides the key details of a scanned room.
Declaration
struct CapturedRoomMentioned in
Overview
This structure represents the post-processed result of the room-scanning process.
Your app receives an instance of this structure through:
The view delegate (RoomCaptureViewDelegate) callback captureView(didPresent:error:) for an app that scans rooms using the framework-provided view (RoomCaptureView).
A room builder object (RoomBuilder) by calling capturedRoom(from:) for an app that provides its own room-scanning view, or processes the saved results of a prior scan.
With the room details, an app can provide custom features, such as rendering the room and enabling the user to modify the position of its objects. You can export the current state of the room at any time to a USDZ file by calling export(to:metadataURL:modelProvider:exportOptions:).
Topics
Creating a captured room
Inspecting room details
identifierstoryfloorsCapturedRoom.SurfacedoorsobjectsCapturedRoom.ObjectopeningswallswindowssectionsCapturedRoom.SectionCapturedRoom.Confidenceversion
Serializing a captured room
Generating a USDZ file
export(to:exportOptions:)export(to:metadataURL:modelProvider:exportOptions:)CapturedRoom.USDExportOptionsCapturedRoom.ModelProvider