Menu: Files->Export->Visible surfaces to STL...

Exports the displayed triangular and quadrilateral surfaces in ascii or binary STL format with this window:

Only the displayed meshes are written in the STL file. If the displayed meshes are deformed, then the meshes in the STL file are also deformed.