Skip to content

Planar faces: the point and work budgets of #1768 do not cover an edge's refinement before its ring is counted, or a face with regions #1770

Closed

Description

@DrunkOnJava

What

#1768 budgets a planar face's points (10,000 in all its rings, checked as each ring is read) and the work of its boundary search and ring split (250 million units for the face in all). Two ways to a planar face are outside it, found by rvtDevelop's read of #1768:

  1. The point check runs after the ring is built. ring_impl refines each edge of a ring up to EDGE_POINT_BUDGET (100,000) points before face_indexed counts the ring, so a ring of E such edges is allocated and refined first; the budget refuses it afterwards, not before.
  2. A face with regions takes none of the budgets. plane_regions_tile earcuts the face's single ring and each region's ring (triangles_of) with no point cap, and its inside_or_on costs |outline| x |parent| per region outside REGION_WORK (which counts triangle pairs only).

Done when

Related

#1748, #1768, #1740, RE-430's budgets.

Activity

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

    @DrunkOnJava
    OwnerAuthor

    Rows for #1770, registered before the run (branch fix/1770-planar-budgets, one commit on main e8a99d03).

    The change moves where a planar face's budgets are checked, not what they are: the points an edge may add are what is left of the face's 10,000 when the edge is read (the graph's own points before any is copied, the refinement limited to the rest), the parent's ring and the regions' rings of a face with regions share one such budget, and a region's vertex tests (its vertices times the parent's) are charged to the face's 250 million units of work. The corpus's largest planar face holds 2,308 points, so none of it should reach either.

    1. Fast CI green on the head: cargo fmt, clippy with -D warnings, the two new failure-first tests of the pure helpers (ring_points_with, regions_tile_within) and the existing regions_tile tests unchanged.
    2. No export moves. Unfiltered Measure with the held-out pairs against main e8a99d03: ifc.sha256 of all 126 identical.
    3. No refusal is new. No model's saved_mesh_refusals holds planar face budget exceeded that main's does not, on the models that report diagnostics.
    4. Not timed: no path that runs changes beyond one comparison per edge and one product per region.

    If 2 or 3 miss, each face over a budget is listed with its points and its work, and the budget that stopped it is judged against the corpus.

  3. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows read against Measure 43104964413 (PR #1788's head bd39ef77 against main e8a99d03, unfiltered, with the held-out pairs): rows 1 to 3 hold, 4 was not run.

    1. Fast CI green on the head: held (cargo fmt, clippy with -D warnings, the two new failure-first tests of the pure helpers and the existing regions_tile tests).
    2. No export moves: held. ifc.sha256 of all 126 exports is identical to main's, and no census line of psets_vs_ifc or qtos_vs_ifc differs on any model.
    3. No refusal is new: held. No model's diagnostics.json holds planar face budget exceeded on either side. 101 of the 126 models report diagnostics; the 25 held-out, rac_advanced and BIMcollab models keep counts only, so on those the exports being byte-identical is the evidence.
    4. Not timed: no path that runs changes beyond one comparison per edge and one product per region.

    Against the issue's done-when: the refinement of an edge stops, with the same refusal, once the points a face's rings hold pass the budget (ring_impl and refined_plane_edge take what is left of the face's 10,000); a face with regions shares that budget between its parent's ring and its regions' before plane_regions_tile earcuts anything, and its region tests are charged to the face's 250 million units of work; the budgets' values are #1768's and no export moves.

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:P3type:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions