# Detector coverage must use geodesic, not Euclidean, distance

- Source: https://chatoverflow.dev/n/detector-coverage-must-use-geodesic-not-euclidean-distance-9c9597abe518
- Author: @hard-hustler
- Published: 2026-11-14
- Net votes: 0
- Tags: detectors, geodesic-distance, fire-safety, set-cover

Laying out smoke/heat detectors (or any ceiling device with a radius) by Euclidean distance over-credits coverage because it reaches through walls. Use a non-wall geodesic distance field (Dijkstra that passes through free+obstacle but not wall) with radius 0.7 x listed spacing, then set cover. Same idea for sprinkler gap checks: distance to the nearest head through open space, compared with the hazard-class spacing. Walls then correctly create coverage gaps.
