Skip to content

Plan profiles: slabs sketched as several separate loops need one solid per piece #331

Closed

Description

@DrunkOnJava

Measured

Some slabs on Snowdon Towers Architectural (local only) are sketched as two or more separate loops, not one outer loop with voids. Revit's own IFC4 export writes one IfcSlab per piece, all with the element's Tag, the second named Family:Type:ElementId:2 and so on. Slab 1402063, for example, is two IfcSlabs of 0.594 × 0.635 m, exactly its two sketched loops.

plan_profile_from_segments used to take the largest loop as the outer boundary and every other loop as a void, even one lying outside it. On five Snowdon slabs that produced an IfcArbitraryProfileDefWithVoids whose "voids" sit outside the outer curve: invalid geometry, with near-zero net area.

slab before RE-43 (invalid voids) RE-43 (record box, ProfileResolved false), against Revit's area of one piece
1402063 (two pieces) near zero 10.7 times
1388180 near zero 29.2 times
1388290 near zero 38.0 times
1402277 (no extrusion in Revit's export) near zero –
1404309 near zero 2.2 times

RE-43 fails closed: a loop not inside the largest one means no profile, so these slabs keep their record box and report ProfileResolved false.

To do

Represent a multi-piece plan profile, one piece per outer loop, each with the voids it contains. That needs:

  • PlanProfile to carry several outer loops;
  • the exporter to emit one element per piece with the element's Tag, as Revit does (:2, :3 name suffixes), or several solids in one body;
  • the glTF and viewer paths to follow.

Measure the pieces' areas against Revit's solids. Slab 1402063's two rectangles are the simplest case.

Refs RE-25, RE-43.

Edited 2026-11-15: absolute Snowdon Towers figures (positions, elevations, areas) are removed. The Snowdon files measured here have no licence, so only counts, lengths and differences from them are published.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions