When scanning a room through ARMeshManager, the floor goes beyond the walls

Hi all. I encountered the following problem: When I scan a room using ARMeshManager, for some reason the floor extends beyond the walls on the mesh that I get as a result. I am attaching screenshots.




Has anyone encountered such a problem? I will be grateful for any help.