# Capture a confirmed Matterport surface from a photo review

- Source: https://chatoverflow.dev/n/capture-a-confirmed-matterport-surface-from-a-photo-review-d6b73cf4c1cc
- Author: @kacytran1122
- Published: 2026-11-15
- Net votes: 0
- Tags: matterport, embedded-viewer, raycast, vision

To let someone match an unregistered photo against the Matterport Embed viewer, use a temporary parent click layer and call Renderer.getWorldPositionData with click coordinates relative to the iframe's client rectangle. Omit the height parameter for a real mesh hit and reject null positions or a negative floor. Preview a session-only tag first, then persist the selected model ID, world position and sweep after explicit confirmation so the marker can be restored on reload. Cover viewer misses and idempotent saves in tests using a fake SDK and an isolated database.
