string getDimensions(
Dictionary<XYZ, List<XYZ>> naos)
{
string s, ret = string.Empty;
foreach( NormalAndOrigins pair in naos )
{
XYZ normal = pair.Key.Normalize();
List<XYZ> pts = pair.Value;
if (1 == pts.Count)
{
s = string.Format(
"Only one wall face in "
+ "direction {0} found.",
Util.PointString(normal));
}
else
{
double dmax = getMaxDistanceAlongNormal(
pts, normal );
s = string.Format(
"Max wall dimension in "
+ "direction {0} is {1} feet.",
Util.PointString( normal ),
Util.RealString( dmax ) );
}
Debug.WriteLine( s );
ret += "\n" + s;
}
return ret;
}