ComputeWallsSurface
An interior design application to draw house plans & arrange furniture
Brought to you by:
puybaret,
space-mushrooms
The .sh3p file
the .jar file
The code
The object oriented analysis
Hi,
I don't think this plug-in does what most people would expect it to do.
I attached a small example to explain what i mean. This example contains two rooms. The walls all are 1m high and have a length of 1m. One of the walls is part of both rooms. If you select all walls and calculate the walls surface the result is 7m². But it should be 8m².
It also does not account for the actual inner length of the wall (inside the room), which is not really 1m, thus the floor area is only 0.78m² instead of 1m², which seem the to be the correct value (i did not check this).
Not accounting for the inner length of the wall is no an issue big issue as it does
not make that much of a difference for the most walls, but IMHO missing a complete
wall is a real bug.
At least those issues should be mentioned somewhere...
@maitob The result of the plugin (which is 7.0) seems correct to me.
8 times 1 (wall height) times 0.88 (inner wall length) = 7.04 ≈ 7.0.
Last edit: Marcus Beyer 2017-06-28
After inspecting the code one finds that maitob is right, although the example (s)he chose is misleading. Consider the updated example with a 2m wall separating the two rooms. We expect 4x1.88mx1m + 4x0.88mx1m = 11.04m², but the plugin yields ~10m². The reason is it just iterates over all walls considering the walls' length, neither taking into account thickness of adjacent walls (which reduces length) nor whether both surfaces of a wall need to be considered.