Skip to content

research(params): RE-157, a pipe's inner and outer diameters are in its own curve object (B26, #35) - #611

Merged
DrunkOnJava merged 7 commits into
mainfrom
re/re157-pipe-inner-diameter
Oct 3, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
re/re157-pipe-inner-diameter

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

RE-157 (Measure run 37142956936): Revit's InvertElevation (69 values on RE1) is a horizontal pipe's axis height less half its inner diameter, or a vertical pipe's lower end. Every pipe's own RbsPipeCurve data object holds the inner diameter 549 bytes after its header, followed by its outer diameter, on all 11 sizes of RE1 Mechanical and Plumbing; the segment's size table repeats them as nominal, inner, outer.

Adds examples/probe_re157_pipe_inner_diameter.rs and reports/element-framing/RE-157-pipe-inner-diameter.md. No tests: a research probe and its report.


Note

Low Risk
Documentation and a standalone example probe only; no changes to parsing, export, or tests.

Overview
Adds RE-157 research artifacts to locate where Revit stores a pipe’s inner diameter so Pset_FlowSegmentPipeSegment.InvertElevation (#35) can be derived later.

Introduces probe_re157_pipe_inner_diameter: it reads horizontal pipes from a sibling IFC export (InvertElevation, axis height, outer radius), computes distinct inner diameters, then scans every inflated partition for matching f64 values and prints RE-153–style object ownership plus nearby doubles. The companion report records the positive finding—inner then outer diameter at offset 549 on each pipe’s own RbsPipeCurve (0xd68) object, with the segment size table as a duplicate source—and notes how that enables future invert export. No library or export behavior changes in this PR.

Reviewed by Cursor Bugbot for commit 7799308. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 18:19
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
… (#613)

RE-157 (#611) found each pipe's inner and outer diameters in its own
RbsPipeCurve data object, 549 bytes after the header. Revit's
InvertElevation is a horizontal pipe's axis less half its inner
diameter, or a vertical pipe's lower end, above the pipe's storey (69
pipes on RE1).

- partition_room_parameters: verified_data_object; enclosing_data_object
uses it.
- partition_curve_fields: scan_pipe_diameters (pipe id and RbsPipeCurve
tag in the header, 0 < inner < outer).
- partition_schema_mvp: m_pipe_inner_diameter.
- export_content: InvertElevation (IfcLengthMeasure) in
Pset_FlowSegmentPipeSegment, in model height; a sloped pipe gets none.
- ifc/mod.rs: pipe_inverts_above_storeys takes the storey elevation off
once storeys are bound.

Test: tests/invert_elevation.rs (real target). Red on main: draft #612,
run 37143783049, 6 of 6 Mechanical pipes missing; the output is in the
test commit's message. Core Interior has no pipes, so no pinned count
moves.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes IFC property emission and partition binary parsing for pipes;
incorrect invert math or storey adjustment would affect downstream MEP
workflows, but scope is limited to pipe property sets and new validation
tests.
> 
> **Overview**
> Adds **RE-157** support so IFC exports include **`InvertElevation`**
on `Pset_FlowSegmentPipeSegment` for pipes, aligned with Revit’s IFC4
behavior.
> 
> Partition scanning now reads each pipe’s inner/outer diameter from
verified **`RbsPipeCurve`** data objects (`scan_pipe_diameters`) and
attaches **`m_pipe_inner_diameter`** on pipe elements. Invert is
computed in model height (vertical pipe: lower end; horizontal: axis
minus half inner diameter; sloped or missing diameter: omitted), emitted
alongside segment **Length**, then **`pipe_inverts_above_storeys`**
subtracts the bound storey elevation so the value is height above the
storey.
> 
> **`verified_data_object`** is factored out of room-parameter parsing
for reuse by the diameter scanner. A corpus integration test
**`invert_elevation`** compares RE1 Mechanical/Plumbing exports to
reference IFC within 0.1 mm.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
3c22e81. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@DrunkOnJava
DrunkOnJava merged commit 0c7e71c into main Oct 3, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re157-pipe-inner-diameter branch October 3, 2026 18:53
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…deleted branch (#1001)

## Summary

Sixteen reports' reproduce commands named a branch that was deleted when
it landed (`feat/mullion-span`, `feat/bare-named-parameters`,
`feat/wall-extend-to-structure`, `feat/824-hatch-openings`,
`re/re155-reference-slots` ... `re/re163-content-documents`,
`re/878-2015-episodes`, `re/223-flag-census`,
`docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each
now names the commit that landed (`--ref main -f ref=<sha>`, and `-f
base=<parent>` where it measured a change against `main`).
CONTRIBUTING's reverse-engineering steps state the rule.

## Motivation

A report's reproduce section is how its counts are checked again.
Measure's `ref` input takes a commit, and every probe and scorer these
reports name is on `main`.

## Changes

- **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`,
`RE-225` to `RE-229`**: branch refs replaced by the squash commits of
#601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993,
#994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it
is the ungated branch its scorer needs, and it stays.
- **`CONTRIBUTING.md`**: a report's reproduce commands name a commit,
never a branch.

## Testing

Unit tests are banned in this repository: do not add them.

- [ ] `tools/check-local.sh`: CI.
- [x] Every probe and scorer the changed commands name exists on `main`
(checked file by file), and each commit is the merge of the pull request
that added the report.
- N/A: no code change.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] No user-visible change, so no changelog fragment
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant