Hi, I am trying to create a 2D floor plan from the 3D model that RoomPlan creates. This was a FAQ in the augmented-reality Apple Slack channel and the answer given was "RoomPlan outputs a 3D floor plan. You may set the z-coordinate to 0, which will flatten it and thus give you a 2D top-down floor plan." Does anyone know what this z-coordinate is and how to change it? Thank you
Creating Floor Plan with RoomPlan
I am interested if you have the answer :)
I've posted a solution to this in this similar post: https://developer.apple.com/forums/thread/713409?page=1#734583022
Yes 3D drawings are X, Y, Z to give a plan in 3D. Its not normally as simple as changing Z to 0, but there is formula that will do the translation, what is your need?
actually what you need to do is remove the y component and not the z component, if you want to convert from 3D->2D, from CapturedRoom you get dimensions.x (wall length) and (transform) .columns.3.x, transform .columns.3.z) is the coordinate of the center of the wall and the direction(transform.columns.0.z, transform.columns.0.z), is the direction of the wall, now you there is a starting and ending point of a wall, similar to other things
I’ve updated the solution with a sample project: https://developer.apple.com/forums/thread/713409?page=1#734583022
Please contact me, if you really want the answer