Skip to content

Two exports of one file write different wall GrossSideArea and GrossVolume in their last bits #1862

Closed

Description

@DrunkOnJava

What

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

Activity

  1. added
    area:ifc
    type:bug
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifctype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions