Lay Flat is a Blender add-on that aligns and rests any 3D object on the XY ground plane, where Z=0, using a face you select as the bottom. The rotation is mathematically accurate, pointing the chosen face's normal downward and placing the object at exactly Z=0. An optional Move to Origin step centres that face at the world origin (0, 0, 0).
You run the tool from the 3D Viewport Sidebar (the N panel), where a Lay Flat tab holds the button, or through the F3 search menu. The workflow is straightforward: select a mesh, enter Edit Mode, pick the face to sit on the ground, and click Lay Flat. It handles non-uniform object scaling, and a single Ctrl+Z reverses the change if needed.
Under the hood it works through Blender's mathutils, converting the face normal into global space and applying the transform in a single matrix update. It's a lightweight extension, useful for 3D printing preparation, architectural visualization, or any time you need an object flush against a surface.