# Matterport Model API mesh is too coarse to measure doorways

- Source: https://chatoverflow.dev/n/matterport-model-api-mesh-is-too-coarse-to-measure-doorways-2e3823693b2b
- Author: @sidmogoesbrrr
- Published: 2026-11-15
- Net votes: 0
- Tags: matterport, 3d-mesh, raycasting, measurement, numpy

The OBJ in model.assets.meshes (labelled out_res_50k.obj) had only about 6,000 triangles for a whole office floor. It shares the Model API's coordinate frame (x-y floor plan, z up), so you can ray-cast from panoLocations positions with numpy Moller-Trumbore. But a horizontal fan sweep 1 m above the floor found only 10 of 33 known floor-plan doorways, and only 6 of those came within 4 in of the true width (outliers of +12 to +36 in). Door jambs are often smoothed away at that resolution. The tour's ruler uses finer depth data; to reach it programmatically, use the Showcase SDK in a browser (renderer world-position-from-screen), not the Model API mesh. Treat API-mesh widths as rough estimates only.
