Skip to content

Saved-graphics bodies part by up to 0.0024 ft where two curved faces share an edge, and at one ruled face #2104

Open

Description

@DrunkOnJava

RE-492 and RE-493 put a plane and the face beside it on the points the file saves for their shared edge, where that face is a ruled face with a spline profile, a surface of revolution or a cone, so those two meet. Where two curved faces share an edge, nothing does that yet.

What is measured (probe_2098_face_cracks: a face's boundary vertex more than 0.001 ft from every other face of its body):

What would close them. Both faces drawn on the shared edge's saved points, as at a plane. What is not read yet:

  • whether the points a curved face's own steps add on the edge are its only difference from the saved points;
  • what the step does where a face's vertices would leave a triangle with no area (RE-492 §4 keeps its points there).

Each change is measured against Revit's exports, as RE-493's was: no scored count moves away from Revit, and the bodies that move are read.

Activity

  1. added
    area:geometry
    priority:P2
    type:bug
    on Nov 20, 2026
  2. DrunkOnJava commented on Nov 20, 2026

    @DrunkOnJava
    OwnerAuthor

    Where the extra points come from, and the plan in two steps.

    The crack probe now also counts, for each face's boundary points, those the face beside it holds too (within 1e-6 ft): probe_2098_face_cracks at e61f380f, kept as refs/archive/2026-11-20/measure-2104-coincident; run 44686787125, on the BIM4LCA office as built and Snowdon Towers' 2024 models, on #2102's code at 1ab9c54e (byte-identical in every export to what landed).

    face pair file boundary points held by the face beside too over 0.001 ft
    cylinder / two-loop cylinder Snowdon Towers HVAC 7,099 2,779 1,152
    cylinder / cylinder Snowdon Towers Architectural 3,557 2,549 588
    cylinder / two-loop surface of revolution Snowdon Towers Architectural 2,511 978 315
    surface of revolution / two-loop surface of revolution Snowdon Towers Architectural 8,385 2,270 84
    surface of revolution / surface of revolution BIM4LCA office as built 12,845 5,664 258
    two-loop plane / ruled face Snowdon Towers Architectural 45 10 4

    The probe prints a pair only for a body that has a point over 0.001 ft, so the first two counts are of those bodies alone, both faces summed; "the face beside" is the face nearest the point by triangle distance. The other three office files and the four housing files were not run.

    Two things are printed: many boundary points are held by both faces, and none over 0.001 ft is (a point both hold is at no distance from the other face, so that much follows). That the shared ones are the edge's saved points is read in the code for two cylinders only: refined_curved_edge keeps the saved points of an edge between two cylinders as they are. That the others are each face's own steps between them is step 1's premise, which its rows test. How the parametric mesher places a surface of revolution's points on such an edge is not read yet. Main's 588 between two cylinders are all on Snowdon Towers Architectural, which has no Revit export in Measure: they can be read only against Revit's IFC4 export of it (bldrs-ai/test-models), kept locally. The tees have no Revit export at all, only the VIM's height, lowest point and volume.

    The plan. Where two curved faces share an edge whose saved points change both parameters on each side (as RE-492 decides it at a plane), both faces put their added points on the straight line between the edge's saved points, so they meet:

    1. Two cylinders first: the 36 tees' 1,152 and main's 588.
    2. Then the pairs with a surface of revolution, which the parametric mesher draws: on main, by RE-493's split over nine files, 1,260 between two surfaces of revolution and 315 between a cylinder and one (the 84, 315 and 258 above are among them).

    The column's 4, at a plane, are a third case: whether its ruled face's profile is one RE-492's step takes is still to read.

    Each step's rows are registered on its pull request before its run is read. For step 1: by face pair, the cylinder pairs' points over 0.001 ft fall, no other pair's rise and no body gains one; and against Revit's exports, with mesh_bodies_vs_ifc in Measure where they hold such bodies, and locally for Snowdon Towers Architectural with the two-way reads kept with RE-494 (refs/archive/2026-11-20/measure-2102-reads).

  3. DrunkOnJava commented on Nov 20, 2026

    @DrunkOnJava
    OwnerAuthor

    A correction to the plan in my note above: step 1's straight-line rule (#2107) leaves no gap over 0.001 ft between two cylinders on the 77 files read, but makes 23 of the 53 bodies it moves on Snowdon Towers Architectural worse against Revit's export on at least one count, most of them with more of Revit's vertices beyond 0.001 ft; on the one read, the long strips of the faces it touches move with their boundary vertices (the rows as read). The candidate for #2107 that I will build next puts the edge's points on the curve where the two cylinders meet, which lie on both surfaces. Step 2, the pairs with a surface of revolution, is decided after that rework, not on the straight-line rule.

  4. DrunkOnJava commented on Nov 20, 2026

    @DrunkOnJava
    OwnerAuthor

    Step 1 landed in #2107 as 26a6b0e1 (RE-495): an edge two cylinder faces share, where both faces' saved samples run across both parameters, takes the points where the two cylinders meet, held by both faces. On the 77 files the crack probe reads, no boundary vertex between two cylinders is left over 0.001 ft, against 3,170 on main before it. It landed with a fit loss against Revit's exports and a triangle cost, on record in RE-495; why those bodies fit worse is #2111, read next.

    Step 2, the pairs with a surface of revolution, is still open here.

  5. DrunkOnJava commented on Nov 20, 2026

    @DrunkOnJava
    OwnerAuthor

    Step 1's edge bound changed in #2116 (5a8a451a, RE-496), on Griffin's call: the edge two cylinder faces share is now refined to half the faces' 0.001 ft chord rather than a quarter of it. The cracks stay closed on the 77 files the crack probe reads, and 61 per cent of the cylinder triangles step 1 added go, each graph counted once. On the 13 files whose triangle totals step 1 raised by more than 10 per cent, 48 to 100 per cent of its rise goes, by the crack probe's totals. The cost is that on 147 graphs the farthest a cylinder face's triangles stand off the true cylinder rises, by at most 0.00032 ft, still within 0.001 ft. Step 2, the pairs with a surface of revolution, is still open here.

    Edited: the 13 files are those whose triangle totals step 1 raised by more than 10 per cent, not the ones where it added the most triangles. The figure over every graph and the cost are added.

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:geometrypriority:P2type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions