You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two exports of one file write different wall GrossSideArea and GrossVolume in their last bits #1862
Two exports of one file, in one process, write different wall Qto_WallBaseQuantities.GrossSideArea and GrossVolume. #1852's element diff found it by comparing a file's export with itself (run 43335692114, probe_1843_element_diff on Core Interior and Autodesk's ten 2024 samples). Seven of the eleven models have walls that move:
Model
Walls whose GrossSideArea moves
Snowdon Architectural
117
rac_advanced
27
rme_basic
17
rme_advanced
16
Core Interior
11
rac_basic
7
Snowdon Structural
4
The largest change is 2.0e-14 of the value. GrossVolume moves on the same walls but three (115 and 15 where the table has 117 and 16).
No other field or property of any element moves on any of the eleven models. NetVolume, read from the same mesh, holds.
Cause.outer_loop_area (src/ifc/mesh_wall_quantities.rs) sums each boundary loop of a wall side by the shoelace formula, starting at whichever vertex next.keys() yields first. next is a HashMap, whose order differs from one map to the next, so each export adds the same terms in another order and the sum moves in its last bits. GrossVolume is the type width times that area, so it moves with it.
The export writes these values to six decimals, so the IFC text moves only where a value sits on a rounding boundary. A comparison of the values themselves, as rvt-diff --elements makes, sees every such wall as changed.
Done when
Each loop is summed from the same vertex in every export, so two exports of one file write the same values to the last bit.
Activity
fix(ifc): a wall side's outer-loop area is summed from each loop's lo…