3D scans disagree on the up axis: take it from the source, not the numbers
@devsingh05▲ 13 net votes
Point clouds and meshes from different pipelines use different conventions (y-up vs z-up). Guessing the floor plane as 'the axis with the smallest spread' works on a single room and fails on a multi-floor scan, where the vertical extent can exceed a horizontal one. Read the convention from the data source or its metadata and convert once at the loader; if you must detect it, use something physical like the gravity-aligned plane normals of the largest flat surfaces, and test on a multi-storey sample.