Repository navigation
feat(ifc): roofs sloped by several slope arrows (#885) (RE-307) - #1276
Merged
Merged
Conversation
DrunkOnJava
force-pushed
the
re/885-multi-arrow-roofs
branch
from
November 3, 2026 13:54
ab2f480 to
ae0edf0
Compare
…es they define where the wedges resolve them (#885) (RE-307) Each arrow's tail lies on one boundary line, square to it: its plane rises from that line at the arrow's slope, the underside level with the base there and the top a plane's own T / cos(theta) above. Each surface counts a plane within its own wedges, and a top is not cut at its edge's line. A roof holding a sloped edge that a reflex edge's extension meets inside, beside a sloped neighbour at a convex corner, keeps its record box.
…n as its planes, the U measured and left as its box (#885) (RE-307)
…ofs' scores (#885) (RE-307)
…w roofs with partly sloped walls, not every T or U roof (#885) (RE-307)
…heir heights, on one loop with a fascia depth read as 0, and the split mesh builder is private to the ifc module (#885) (RE-307)
DrunkOnJava
force-pushed
the
re/885-multi-arrow-roofs
branch
from
November 3, 2026 14:52
a2d02ab to
4d9d0d3
Compare
…eight-set arrows, pins the measured commit, and cites the run on the reviewed head (#885) (RE-307)
DrunkOnJava
marked this pull request as ready for review
November 3, 2026 15:55
DrunkOnJava
enabled auto-merge (squash)
November 3, 2026 15:55
Owner
Author
|
Automated Claude Code review (the maintainer's review agent; it read the code and run 41648509847): one blocking item, fixed in 4d9d0d3 and a262080. Angle-set arrows and Revit 2024 files were drawn though the PR said they were not; several arrows are now drawn only on Revit 2025, set by their heights, on one loop. RE-307 limits what it calls measured to the U and those arrows, and pins the measured commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A footprint roof sloped by several slope arrows and no defining edge is drawn as one plane per arrow, where the wedge rule of RE-199 resolves them, on Revit 2025 for arrows set by their heights, with a plumb cut, a fascia depth read as 0 and one loop. On puzzbobb's
20_T_U_Roof(Revit 2025) the T-shaped roof 4149 is now Revit's body. The U-shaped roof 5941 stays its record box, as a measured negative: Revit slopes its two long outer walls along the arms only, and the rule behind that is not established.Motivation
#885, RE-199 section 8: both roofs of
20_T_U_Roofwere drawn as their record boxes (4,426 and 37,357 cubic feet against Revit's 437 and 1,846), since RE-199 read a single arrow per roof. Refs #885.Changes
src/research/partition_schema_mvp/roofs.rs:attach_roof_slopesreads every arrow of a roof with no defining edge, on Revit 2025 only (the boundary line its tail lies on and is square to, set by its heights, tail height 0, rising slope, head inside the outline, one loop) and setsm_roof_arrow_planes;roof_arrow_planes_from_fields.src/research/partition_schema_mvp/fields.rs:ROOF_ARROW_PLANES_FIELD.src/ifc/export_content.rs:roof_arrow_planes_solid(underside level with the base along each arrow's line, top a plane's own T / cos(theta) above it, each surface with its own wedges, a top not cut at its edge's line) andarrow_roof_hip_ambiguous, which keeps a roof with a sloped edge that a reflex edge's extension meets inside it, beside a sloped neighbour at a convex corner, as its box (the U).src/ifc/body_geometry.rs:envelope_slab_mesh_split(visible to theifcmodule only);envelope_slab_meshcalls it with the same domains for both surfaces, so every earlier roof draws as before.probes/examples/probe_re307_arrow_roofs.rs,reports/element-framing/RE-307-roofs-sloped-by-several-arrows.md, a changelog fragment, and the roof lines ofdocs/(status, support matrix, evidence, supported profile, contribution map).Testing
Unit tests are banned: none added. End to end on real files, through Measure on GitHub's runners (no local builds).
tools/check-local.shpasses: CI runs it on this PR (fmt, clippy, rustdoc and the real-file jobs); nothing was built locally20_T_U_Roof(Apache-2.0,research/r2025-models.tsv), against Revit 25.0.2's IFC4 export,tools/re/roof_bodies_vs_ifc.py, probeprobe_re307_arrow_roofsmaindoes, so the witness verdicts need no refreshMeasure 41657924215 (
-f base=main -f nordic=true -f r2025=true -f probe=probe_re307_arrow_roofs -f probe_scorer=-, head4d9d0d3b,mainat2e07e27a); the same result on the earlier heads in 41648509847, 41642988246 and, filtered to the model, 41642079234. The commits after4d9d0d3bare documentation:mainr2025-20_T_U_Roof. The other 31 are byte-identical and every scorer's output for them is unchanged.main, 20 here; every vertex within 0.001 ft of rvt-rs's surface, 20 and 21. No roof's score got worse.Audit-honesty checklist
changelog.d/changed/docs/supported-profile.mdsay what is drawn and what is notarrow_roof_hip_ambiguous,arrow_roof_edges): the U and the configuration it shows (only the U is measured); Revit 2024 and other releases; arrows set by angle or with a tail height other than 0; a fascia depth that is not read; a two-cut or square rafter cut, a fascia depth, a hole; defining edges and arrows in one roofprobes/examples/probe_re307_arrow_roofs.rs, the reportreports/element-framing/RE-307-roofs-sloped-by-several-arrows.mdLegal and contribution hygiene
20_T_U_Roof.rvt(released by its author under Apache-2.0) and on Revit 25.0.2's own IFC4 export of it, read through IfcOpenShell, with buildingSMART's IFC4 specification. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc.Breaking changes
None.
envelope_slab_meshkeeps its signature and its output;rvt::researchitems are outside the semver promise.Screenshots or output samples
See the table above. The probe's output for both roofs (arrows, boundary lines, reflex-vertex extensions and what the export read) is in the
probe.txtof Measure'sr2025-20_T_U_Roofartifact.Related issues
Refs #885 (the U and the roof cases with no oracle remain open there).