Could be interesting to apply this for buildings.
Um. Yes. Please yes. For complex datasets, it may need to be fed footprints to constrain the complexity of the input models, but… wow.
https://3d.bk.tudelft.nl/liangliang/publications/2016/manhattan/manhattan.html also. Different algorithm, similar purpose.
And another, which looks like a pre-publication version of https://www.sciencedirect.com/science/article/pii/S0097849315001077#f0065:
I haven’t found code for this yet.
Also related (but realtime): http://pathfinder.engin.umich.edu/documents/Feng&Taguchi&Kamat.ICRA.2014.pdf
This was already posted separately, but just to keep this together in a group, Make It Flat: Detection and Correction of Planar
Regions in Triangle Meshes: