Outside diameter handed to the router
64-bitThe pipe's outside diameter in millimeters for a route between two ports.
od = od in × 25.4
One 64-bit multiplication by 25.4, done twice (once for the router and once for the result). The route's length shown in the message is rounded to whole millimeters afterwards; the route itself is not.
/** A route between two ports of the model (mep.ports(): storey plan mm), round the equipment of the table that is in the model. */
function findRoute(a, b, specId, size) {
const spec = specs().find((x) => x.id === specId) || specs()[0];
const ps = pipeSize(spec.material, spec.cls, size);
if (!ps) return { ok: false, error: 'size' };
const obstacles = equipment().filter((it) => it.guid).map((it) => placeEquip(makeEquipment(it.type, it.params), { x: it.x, y: it.y, z: it.z, rot: it.rot }).bbox);
const r = route({ from: { p: a.at, out: a.out }, to: { p: b.at, out: b.out }, obstacles, od: ps.od * 25.4 });
return r.ok ? { ...r, spec, size, od: ps.od * 25.4 } : r;
}