I have an iOS app based on the Swift 4 sample application. I have implemented the changes in this thread to make a fixed size and placement scanning cube:
But is it also possible to change the perspective (orientation) of the scanning cube, so it does not follow the device, but it is always following gravity. I.e. cube aligned with horizon instead of device. This should also result in a scanned model that always has X and Y axis along the ground plane.
Any help appriciated, especially in Swift 4 compatible form