Repository navigation
feat(elements): draw pipes as the cylinders their connector entries and record box make (#96) (RE-131) - #522
Merged
Merged
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_a41b074d-5556-412e-bc0a-b359c6d52afd) |
DrunkOnJava
marked this pull request as ready for review
September 30, 2026 13:50
DrunkOnJava
added a commit
that referenced
this pull request
Sep 30, 2026
…onnected there, and ends match to 0.00001 ft (#96) (#523) ## Summary Corrects two statements in RE-131 (#522) that said more than was measured: what an entry's element is at a pipe's ends, and how closely the ends match. ## Motivation #522 said an entry is keyed by the pipe "for an end nothing is connected to" and by the connected element otherwise. Only the second half was checked: pipe 442026's two ends are keyed by 442040 and 442191, two Closet Bend fittings whose placements in Revit's IFC sit 0.1413 ft beyond the pipe's ends on its axis, each beside the end it is keyed for. Pipes 441731 and 441849 have both entries keyed by the pipe itself, and what is at those ends was not looked at. The doc comment and the note on the tolerance also said "to the last bit"; the scorer's resolution supports 0.00001 ft. ## Changes - `src/partition_pipe_axes.rs` doc comments, the RE-131 report, the CHANGELOG entry and the support-matrix note now say the entry is keyed by the pipe itself or by the element connected at that end, with the 442026 evidence, and give the ends' agreement as 0.00001 ft. No code changes. ## Testing Docs and comments only. The fittings' placements are from RE1 Mechanical's own IFC (`IFCFLOWFITTING` Tags 442040 and 442191, placed at x = -178.7549 and -184.0042 ft against the pipe's ends at -178.8962 and -183.8629 ft, same y and z). - [x] `cargo fmt` clean; the doc comment change is the only Rust change ## Legal and contribution hygiene - [x] Apache-2.0; clean-room as #522 - [x] No new fixtures ## Breaking changes None. ## Related issues Refs #96.
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
Pipes are drawn as the circle-profile cylinders Revit draws (an
IfcExtrudedAreaSolidover anIfcCircleProfileDef) instead of their record boxes, from the two connector entries that hold each pipe's ends and the record box that gives its radius. On the MIT RE1 Mechanical and Plumbing models (Revit 2025), all 69 pipes match Revit's own export in profile, radius, axis ends and length;mainmatched none.Motivation
Pipes were boxes (#96). jakobhirn-bit's test vector in Discussion #112 reads a pipe's centreline from connector entries and derives its outside radius from the record box, on Autodesk's Snowdon Towers plumbing sample, which cannot run in CI. The probe on RE1 (runs 36719977712 and 36720663075) found the same entries there, at the points where Revit's own IFC starts and ends each pipe's extrusion, so the layout is now measured on a licensed file.
reports/element-framing/RE-131-pipe-cylinders.mdhas the finding.Changes
src/partition_pipe_axes.rs: finds the connector entries ([u64 element][u32 index][u32 1][3 x f64]) whose points lie in a pipe's box in one pass over its partition, takes the furthest-apart pair, and keeps it only if every well-conditioned axis gives the same radius and the box rebuilt from the cylinder is the record box on all six sides. A pipe no pair proves keeps its box. Revit 2025 only.partition_schema_mvp::attach_pipe_axesstores the ends and radius on the element;ifc::export_contentwrites aPlacedExtrusionover a circle,BodySource = partition_pipe_axis.examples/probe_re131_pipe_sections.rs(the probe the finding rests on), andtools/re/pipe_bodies_vs_ifc.py, added to the Measure workflow's scorers.element-record-pipe-cylinders, partial), and the RE-131 report.Testing
Measure run 36723473598 (this branch against
main, on GitHub's runners),pipe_bodies_vs_ifc.py, per pipe against Revit's own IFC export:mainThe worst differences are under 0.00001 ft. The export diagnostics count
partition_pipe_axis63 on Plumbing and 6 on Mechanical, and the record-box bodies fall from 124 to 61 and from 74 to 68. The IFC of Core Interior, Einhoven, RE1 Architecture and RE1 Electrical is byte-identical tomain's (so both Core Interior witness observations regenerate unchanged), and no other scorer's output changes on any model.gh workflow run measure.yml --ref <branch> -f base=main)main'sAudit-honesty checklist
partial), the README and the profile: every RE1 pipe runs along a principal axis, so sloped pipes rest on the rebuild proof and not on an oracle; jakobhirn-bit's 3,006 of 3,056 on Snowdon Towers' plumbing sample is theirs and is not claimed; Revit 2024 and 2026 are theirs, so the release gate lists 2025; ducts and fittings keep their boxesLegal and contribution hygiene
Breaking changes
On Revit 2025 files, a pipe whose ends are proven changes from a box to a cylinder in the IFC, glTF and plan output. Off nowhere else.
Related issues
Refs #96.