Skip to content

Snowdon Towers Architectural: 21 sanitary terminals refuse for a planar face's triangulated area mismatch once their ruled faces mesh (#1706 step 3) #1732

Closed

Description

@DrunkOnJava

What

After the second step of #1706 (#1715, faces whose trim has holes or is not the rectangle of its parameters), 21 sanitary terminals of Snowdon Towers Architectural (2024) still keep their record box, now for partial: triangulated area mismatch (src/research/native_saved_mesh.rs, the planar path: the earcut triangulation of a plane face with its outer loop and holes, whose triangles must add up to the outer loop's area less the holes').

At main the same 21 elements refuse for multiple parametric trim loops unsupported, one of their faces being a ruled or revolved surface with holes; #1715 meshes that face, which lets the element's other faces be read and one of them, a plane with holes, fails the area check. No other model of the 126 holds the refusal (0 at main, 21 with the change, all on this file, all IfcSanitaryTerminal).

Tags: 773245, 785961, 786325, 786599, 787074, 787123, 787203, 787252, 787301, 800259, 809637, 838396, 906902, 908381, 908584, 908621, 908752, 1313010, 1313067, 1313124, 1319095.

Done when

  • A diagnostic build (the refusal text keeps no digits) says, for each of the 21, the two areas and the loop and hole counts of the face, and what separates it from the planar faces with holes that mesh (the 3,900 or so elements drawn from saved meshes hold many).
  • The rule is narrowed, or the triangulation fixed, until the 21 are drawn or each carries a reason that is true of it, read against Revit's export of the file (volume within 1%, vertices of Revit's against ours) before it is claimed.

Related

#1706, #1715, RE-430.

Activity

  1. added
    area:geometry
    area:ifc
    priority:P2
    type:feature
    on Nov 11, 2026
  2. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    Diagnostic build of the planar area check, rows registered before its run (run 43054812102, a scratch branch on top of #1715's d686a07d; the build is not for main).

    The 21 elements are all IfcSanitaryTerminal, each refused for triangulated area mismatch on a plane face with holes once its ruled faces mesh. The refusal text keeps no digit, so the build prints one line per failing face to the log: the face's loops (vertex count, signed area, nesting depth), the holes assigned to the outer ring, the earcut triangles before and after retain_boundary_points, the triangulated area and the expected one with their difference, how many hole vertices coincide with the outer ring's or another hole's and how many lie outside the outer ring, and the outer ring's box. The run is the 2024 samples, head only, no scorers.

    1. Every one of the 21 elements prints at least one AREADIAG line (or the refusal is no longer triangulated area mismatch, which is then reported).
    2. The lines name the cause: a hole that touches the outer ring or another hole (touch_outer or touch_holes above 0), a hole with vertices outside the outer ring (outside_outer above 0), a nesting the depth count misreads, or none of these (then the area itself is wrong by more than rounding and the faces are read in full).
    3. The fix, when the cause is named, is registered here with its own rows before its run: the 21 elements drawn, no element drawn at main changed, and the faces that mesh today unchanged.
  3. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    The area check fails on one face, whose second loop touches itself at a vertex; the fix, and its rows, before any run.

    Diagnostic runs 43054812102 and 43055872726 (a scratch branch on top of #1715's d686a07d, 2024 samples, head only). Rows 1 and 2 of the comment above read:

    1. Held. Every one of the 21 elements prints an AREADIAG line, and all 22 lines (21 plus a duplicate) are one face: face 171, tag 314, of the toilet symbol (Toilet-Domestic-3D), a plane with three loops.
    2. Held, the cause is named. No hole is assigned (holes=0), none touches the outer ring or lies outside it (touch_outer=0, outside_outer=0, touch_holes=0), and the three loops are all at depth 0, so they are three disjoint rings, as the face is. The second, of 22 points, is two thin spandrels under a flat arch (0.25 ft wide and 0.025 ft tall): the arch rises from the left edge to the top line, falls to the right edge, and the loop closes along the top line back through the crown. Its points 10 and 21 are the same point, the crown, where the two spandrels touch. Both lobes turn counter-clockwise, so the outline's area is the two lobes' sum, but earcut, given a ring that visits one vertex twice, covers a sliver under the crown as well (19 triangles, 0.65% more) and the check refuses it. The other two loops are 4-point corner pieces that triangulate.

    The fix. When the area check fails, split each ring at a vertex it visits twice (the two lobes become two rings, each starting at a vertex that is not the shared one, so that the depth test does not read the touching point), and triangulate again; if that check passes, the face is drawn from the split rings, else it is refused as now. A face that passes the check today takes the same path as before, so no element that is drawn can change.

    Rows, read from Measure (unfiltered, keep_ifc, against main) before the run:

    1. The 21 sanitary terminals of Snowdon Towers Architectural are drawn from their saved meshes, or each reads its next reason, which is listed.
    2. No element drawn at main changes (0 of the objects drawn on both sides differ, tools/re/ifc_body_diff.py), and every BodySource that changes is a box becoming a saved mesh.
    3. Of the new elements that Revit's export holds, the volume reads within 1% of Revit's on at least 80% (mesh_bodies_vs_ifc, on a cut of the new elements) and the classes are listed with their ratios if not.
    4. The other 125 exports are byte-identical, or each element that moves is listed; Snowdon Architectural's IFC and its export time and peak memory are reported against main's (timing).

    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.

  4. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    The fix's four rows, read: all hold (#1740, code 4f47b837, report RE-434).

    Measure 43058503567 (unfiltered, keep_ifc, against main aa5dc4c6: 126 exports, 125 identical, 1 moved; the same-project gates and the semantic check pass) and timing 43058508332.

    1. Held. The 21 sanitary terminals are drawn from their saved meshes; none reads another reason (triangulated area mismatch 21 to 0, saved_mesh_refusals 269 to 248 entries, saved_graphics_mesh 4,282 to 4,303).
    2. Held. Of the 4,282 objects drawn from a saved mesh on both sides, 0 meshes differ (tools/re/ifc_body_diff.py); the 21 BodySource changes are all box to saved mesh; no other object differs in geometry or refusal.
    3. Held. The 21 are one type, Toilet-Domestic-3D, and read 1.0063 of Revit's volume, 21 of 21 within 1% (80% asked); Revit's vertices lie up to 0.0047 ft from the mesh, as for the toilets of RE-430.
    4. Held. The other 125 exports are byte for byte main's. The moved export's IFC goes from 269.5 to 296.3 MB (+9.9%), its triangles from saved graphics from 6,228,638 to 6,948,098 (34,260 per toilet, where Revit's has 1,668: Trimmed faces: an element drawn from a revolved or ruled face costs 9,000 to 17,000 triangles where Revit's export of it costs about 1,700 #1737); its export time reads 1.02 and its peak memory 1.03 of main's.
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