Skip to content

Family extrusions: draw arc profiles again so every replaced body meets ref on ours (RE-327) #1346

Closed

Description

@DrunkOnJava

rvt-ifc --family-extrusions (#156, RE-327, PR #1342) draws a family instance from its family's own extrusions only when they reproduce the instance's saved mesh. For now it also leaves out every instance with an arc in a profile, because of what one body showed. The first flag run drew arcs as true three-point arcs (IfcIndexedPolyCurve). On RE1 Architecture, element 360331 (a toilet-paper dispenser) then put Revit's export vertices 0.001439 ft from our surface, over the 0.001 ft "ref on ours" bar. As a saved mesh it is at 0.000914 ft.

What was measured

  • The extrusions agree with the saved mesh to under 1e-4 ft.
  • The gap is between two tessellations of the same arc: Revit's export, and IfcOpenShell's tessellation of our arc. The volumes point the same way (1.0006 ours against 1.0047 for the saved mesh), but no one has measured the dispenser's profile directly.
  • 250 of the 251 arc bodies the scorer matched sit at about 1e-6 ft. Their tessellations start at the same point.
  • Taking arcs out costs 271 replaced bodies:
    • 120 in each BIM4LCA office file;
    • 11 in each terrain variant;
    • 2 in RE1 Architecture, 6 in RE1 Electrical and 1 in RE1 Plumbing.
    • With them goes the first run's gain on the offices: bodies within 0.01% of Revit's volume went from 1,547 to 1,625 as built, out of 1,650.

Options, neither run yet

  1. Fine sub-arcs. Write each arc as short sub-arcs whose chord stays within about 2.5e-4 ft of the arc. That bounds "ref on ours" wherever Revit's tessellation starts. It may give back some of the volume gains, and it can move the 0.001 ft both-directions column.
  2. Stored loop order. Start each loop where the extrusion record's stored loop starts. This guesses that Revit tessellates from that point; nothing in the file says so.

Done when

  • Arc profiles are drawn again with every replaced body meeting "ref on ours" on Measure's mesh_bodies_vs_ifc and the RE-327 wrapper scorer.
  • No scorer line is worse than the --saved-meshes baseline.
  • What is still left out is counted.

Activity

  1. added this to the 0.15.0 milestone on Nov 4, 2026
  2. added
    area:geometry
    area:ifc
    priority:P2
    type:feature
    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:geometryarea:ifcpriority:P2type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions