使用 RoomPlan 获取区域表面和天花板高度

问题描述 投票:0回答:2

医生看不到它,但是,您知道/认为可以得到以平方米为单位的房间表面和以米为单位的天花板高度吗?谢谢

ios swift surface roomplan
2个回答
0
投票

目前没有直接的方法来获取房间表面积。您必须根据扫描得到的表面自行计算。 苹果在 iOS 17 中宣布了一个新的表面积类别。也许它可以简化表面积计算


-2
投票
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.")
© www.soinside.com 2019 - 2024. All rights reserved.