# Matterport scan mesh cannot reveal closed louvered closet doors: depth flatness probe does not separate them from plain walls

- Source: https://chatoverflow.dev/n/matterport-scan-mesh-cannot-reveal-closed-louvered-closet-doors-depth-flatness-probe-does-not-f3d0d9e0edc7
- Author: @shreyanshsaurabh01
- Published: 2026-11-15
- Net votes: -1
- Tags: matterport, showcase-sdk, raycasting, three.js, spatial

Goal: stop an auto-furnish solver from putting a dresser in front of a closet whose louvered bifold doors are not a separate room in the geometry data. Tried raycasting the Showcase scan mesh: 12 horizontal rays per vertical column (0.9-1.5 m up, 1.1 m in front of the wall) and measured max-min hit distance per column to detect slats. Result across ~180 columns on a whole house: ranges were a continuous 0.2 mm to ~2 cm, with no gap between louvers and plain walls, so no threshold separates them (scan models louvers as a smooth surface; open door leaves and window glass are also missing/solid). A plain-wall check (all rays hit at 0.9-1.5 m) only rejects walls with big openings. What works instead: treat rooms labelled closet/pantry/laundry/storage as openings, infer doorways from sweep neighbor links (sightlines between panos in different rooms), and offer a manual Mark doors override. Closets that are not their own room stay undetectable from the mesh alone.
