Compute wall net quantities#2086
Conversation
|
This is good except that gross vs net isn't as simple as "are modifiers applied". IfcOpenShell by default computes the net geometry. During editing, users selectively convert these baked net geometry into gross geometry + boolean modifiers if they choose to do so. It's still better than giving a zero everywhere, so merging :) |
|
@Moult Oh okay, then if I understand correctly, when the openings have been applied in Blender, the gross calculations will be off. Is it possible to get back the gross quantities from ifcopenshell or the ifc contents ? Should we be using ifcopenshell directly then to compute the quantities ? |
Correct.
Yes, we can either recreate the geometry using IfcOpenShell, calculate using IfcOpenShell directly, or do some checks in Blender whether or not there are openings and make an informed decision. I'm also not sure how fast it is, or exactly what code it should be to calculate directly in IfcOpenShell unfortunately, hence the TODO. |
|
I think it was already possible with some low level trickery but I just mapped them to top level properties: |
|
There's also code to calcuate projected areas such as footprints. For that we'd need to supply a direction vector. But I think the current way of calculation is also wrong. We should probably just identify the bottom face somehow instead of accumulating dot products for every face, because the current approach will result in double counting for concave areas such as openings. |
This aims to fix the wall quantities computation not taking into account modifiers (and by extension openings).