Skip to content

Body scorers: measure shapes, not IfcOpenShell's default tessellation (circle forms differ by one chord) #1355

Closed

Description

@DrunkOnJava

The body scorers (mesh_bodies_vs_ifc, saved_meshes_vs_ifc and RE-327's family_extrusion_bodies_vs_ifc) tessellate both IFC files with IfcOpenShell's default settings. They then check Revit's vertices against rvt-rs's surface ("ref on ours", the #1280 bar) at 0.001 ft. That measures the agreement of two tessellations, not of two shapes.

Measured case (RE-327 §11, #1352). The same exact circle comes out in two forms, depending on the exporter:

  • Revit 24.0.5's IFC4 export writes two half arcs (the BIM4LCA office).
  • Revit 26.2's IFC2X3 export writes an IfcCircleProfileDef (RE1).

IfcOpenShell cuts a 69.85 mm circle into 27 chords as a circle profile and 28 as two half arcs (29 and 30 at 80 mm). Their vertices then sit 0.0014 ft apart, although both describe one circle. Because of this, --family-extrusions keeps the saved mesh for every whole circle over 0.12 ft radius, the office's 78 floor drains included. Those drains matched the office's export exactly as true arcs (run 41805333248).

Work

  1. Add a fine mode to the body scorers. Both files are tessellated at one equal, fine deflection (IfcOpenShell mesher-linear-deflection and mesher-angular-deflection, or analytic distances where a surface is a plane, cylinder or cone). Report it beside today's columns on every model, without replacing them.
  2. Run it unfiltered and report, per class and model:
    • the true-arc family extrusions, in both circle forms;
    • the default door and window saved meshes, whose 0.001 ft chords would sit inside a finely tessellated Revit surface;
    • every other curved body.
  3. Bring the evidence to the maintainer. Changing the bar changes published figures, so it is his call. If the bar changes, a follow-up restores true arcs for big circles in every release.

Done when the fine mode's figures are published beside today's, and the decision on the bar is recorded.

Activity

  1. added
    area:ci
    area:geometry
    priority:P2
    type:research
    on Nov 4, 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:ciarea:geometrypriority:P2type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions