Post

Replies

Boosts

Views

Activity

Reply to RoomPlan: Use the transform and dimensions to generate 4 corner points
here is sample swift code to calculation the room corners: let dim = wall.dimensions let t = wall.transform let pos = simd_float3(x: t.columns.3.x, y: t.columns.3.y, z: t.columns.3.z) let right = simd_float3(x: t.columns.0.x, y: t.columns.0.y, z: t.columns.0.z) let up = simd_float3(x: t.columns.1.x, y: t.columns.1.y, z: t.columns.1.z) let end0 = pos - right * dim.x / 2 - up * dim.y / 2 let end1 = pos + right * dim.x / 2 + up * dim.y / 2
1w