The 3D version drags a duct and a pipe through one structural bay and reports the clash state of that single configuration. This 2D companion instead renders the entire routing search space at once: the horizontal axis is every possible HVAC duct height, the vertical axis every possible plumbing pipe height, and each point is colored by running the identical axis-aligned bounding-box (AABB) scan at that (duct, pipe) pair:
box = { min: (x0,y0,z0), max: (x1,y1,z1) }
gap on one axis:
g = max(minA - maxB, minB - maxA, 0)
3D clearance distance:
d = sqrt(gxΒ² + gyΒ² + gzΒ²)
d = 0 β hard clash (volumes penetrate)
d < tolerance β soft clash (clearance violation)
d β₯ tolerance β clear
Because the structural beams and the duct/pipe runs only ever move vertically, the horizontal (x) and depth (z) gaps between them are always zero β the whole clash map collapses to two flat "clash bands" (one per system, where its height lands inside the beam's vertical envelope) plus a diagonal band along duct-height β pipe-height, where the two services cross each other directly. That diagonal is not drawn in β it falls straight out of the same boxGap() formula used above, applied to the HVAC-vs-pipe pair.
Auto-Resolve is the same exhaustive search as the 3D page: all 32 × 32 height pairs are scored with the same 33-pair scan; fewest clashes wins, then the smallest total move from where you left the sliders, then the largest clearance. You watch the marker glide across the map instead of trusting an opaque jump. The scan covers beams, columns and the cable tray as well as the duct and pipe themselves; round parts are treated as their bounding boxes, so a round pipe is conservatively treated as square. Dimensions and the default tolerance are illustrative. The self-checks re-derive the clearance in closed form and by independent point-to-box sampling on every load.
- Click or drag anywhere on the map β sets the duct/pipe height directly, same as the sliders.
- Clearance tolerance β widens both clash bands and the diagonal crossing band live as you drag it.
- Color scale β red intensity encodes penetration depth (worse = brighter), green intensity encodes clearance margin (more clearance = brighter).