hi,
personally, I recover the lower face by filtering with the component z==-1, then a minimal boundingbox of this surface, so you obtain the coordinates of the 4 corners that you can order then integration and rotation of families
Sincerely
christian.stan