hypar-io/BuildingBlocks

ProgramReader: Incorrect height conversation factor

Opened this issue · 0 comments

roomEntry.area = Math.Round(roomEntry.area *= METRIC_FACTOR, 3);
roomEntry.height = Math.Round(roomEntry.height *= METRIC_FACTOR, 3);

Just stumbled across this, I think length (height) and area would have different conversion factors. It appears METRIC_FACTOR is the area conversation between m^2 and ft^2, so you'd want Line 88 to be something like:

roomEntry.height = Math.Round(roomEntry.height *= Math.Sqrt(METRIC_FACTOR), 3);