I use ARKit to scan vertical planes in ARSCNView. I'd like to draw them later on as 2d lines (parallel projection from above). ARPlaneAnchor doesn't have start and end points, but only center point and width (ARPlaneAnchor.extent).
I also tried with SCNNode and its boundingBox object but the direct coordinates there were different than scanned planes.
How can I convert ARPlaneAnchor or SCNNode to 2d line (2d coordiantes)?
You should be able to use the center point and height/width to calculate the estimated plane edge positions and go from there. Just note that
centeris relative to the plane's anchor.Assuming your plane is vertical as you note, something like this should get you started:
Extension I used: