Get area surface and ceiling height with RoomPlan

380 Views Asked by At

Can't see it it the doc but, do you know/think it's possible to get the surface of a room in square meter and the ceiling heigh in meter ? Thanks

2

There are 2 best solutions below

1
Ozdivmondz On
let length = 4.0 // Length of the room in meters
let width = 5.0 // Width of the room in meters
let height = 2.5 // Height of the room in meters

let surfaceArea = length * width * height 
let ceilingHeight = height

print("The surface area of the room is \(surfaceArea) square meters.")
print("The height of the ceiling is \(ceilingHeight) meters.")
0
Gerri On

At the moment there is no direct way to get a room surface area. You have to calculate it by your own considering surfaces you got from scanning. Apple announced a new surface category which is floor in iOS 17. Maybe it might simplify surface area calculations