You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Snowdon Towers Architectural: 21 sanitary terminals refuse for a planar face's triangulated area mismatch once their ruled faces mesh (#1706 step 3) #1732
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).
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.
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.
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).
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).
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.
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:
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.
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:
The 21 sanitary terminals of Snowdon Towers Architectural are drawn from their saved meshes, or each reads its next reason, which is listed.
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.
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.
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.
The fix's four rows, read: all hold (#1740, code 4f47b837, report RE-434).
Measure 43058503567 (unfiltered, keep_ifc, against mainaa5dc4c6: 126 exports, 125 identical, 1 moved; the same-project gates and the semantic check pass) and timing43058508332.
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).
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.
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.
Activity
DrunkOnJava commentedon Nov 11, 2026
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 formain).The 21 elements are all
IfcSanitaryTerminal, each refused fortriangulated area mismatchon 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 afterretain_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.AREADIAGline (or the refusal is no longertriangulated area mismatch, which is then reported).touch_outerortouch_holesabove 0), a hole with vertices outside the outer ring (outside_outerabove 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).mainchanged, and the faces that mesh today unchanged.chore(scratch): print the failing face's loops once (#1732), not for …
DrunkOnJava commentedon Nov 11, 2026
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:AREADIAGline, 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.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, againstmain) before the run:mainchanges (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.mesh_bodies_vs_ifc, on a cut of the new elements) and the classes are listed with their ratios if not.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.
fix(research): the planar triangulation's result has a name, for clip…
fix(research): the three-lobe test passes its ring as a slice (#1732)
docs(re): RE-434 reads the pinched plane ring's split against its fou…
DrunkOnJava commentedon Nov 11, 2026
The fix's four rows, read: all hold (#1740, code
4f47b837, report RE-434).Measure 43058503567 (unfiltered,
keep_ifc, againstmainaa5dc4c6: 126 exports, 125 identical, 1 moved; the same-project gates and the semantic check pass) andtiming43058508332.triangulated area mismatch21 to 0,saved_mesh_refusals269 to 248 entries,saved_graphics_mesh4,282 to 4,303).tools/re/ifc_body_diff.py); the 21 BodySource changes are all box to saved mesh; no other object differs in geometry or refusal.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.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 ofmain's.fix(research): a planar face holding more than 10,000 points, or whos…
fix(research): a plane face whose ring visits a vertex twice is split…
docs: Snowdon Towers figures are given as counts, lengths and differe…