Skip to content

Bind recovered columns to storeys via the record bbox base elevation #213

Closed

Description

@DrunkOnJava

Follow-up to #204 / PR #210.

The 256 recovered columns are emitted with storey_index: None, so they land under the writer's default storey and RvtColumnGeometry.LevelBindResolved is false. That is honest — no Level ElementId was recovered — but the binding may be available geometrically without solving #86.

Observation: the recovered records' bbox min_z values cluster on exactly the elevations rvt-rs already recovers as storeys. On 2024_Core_Interior.rvt the column base z values are {0.0, 31.0, 46.0, 61.0, 76.0, 91.0, 106.0, 121.0, 136.0, 151.0} — a 15 ft floor-to-floor rhythm, and Revit's own export puts column 20375 under the storey whose placement is z = 76.0, exactly the record's min_z.

Proposal: bind a column to the storey whose recovered elevation equals its bbox min_z within a tight tolerance, fail closed when no storey matches or more than one does. That is a measured join, not an invented one, and unlike the Level ElementId map RE-20 falsified it does not require an id table that is not in the file.

Caveat that makes this non-trivial and is the reason it is not in #204: rvt-rs currently recovers 12 storeys against the export's 15, and the recovered elevations are often 0.0 because partition Level names arrive without ArcWall elevation trailers (levels is decoder_baseline at 12 for exactly this reason). So the join has nothing to match against on this file until storey elevations are real. The column base elevations are themselves evidence about what those elevations should be — 10 distinct base z values from column records is a stronger elevation signal than the name strings currently used.

Sequence: recover storey elevations from the element-record bbox distribution first, then bind. Both fail-closed.

Related: #33, #86, #204.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions