Skip to content

research(elements): a duct's or pipe's type, width and height are in its own object, and duct bodies already have Revit's box (#96) (RE-134) - #527

Merged
DrunkOnJava merged 4 commits into
mainfrom
research/re134-curve-fields
Sep 30, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
research/re134-curve-fields

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Locates where a duct's or pipe's type, width and height are stored (in its own curve object, after the RbsCurveConnectorManager anchor jakobhirn-bit found), checks them against Revit's own IFC on RE1 Mechanical and Plumbing, and adds a duct-body scorer to every Measure run. Research only: no change to rvt-rs output.

Motivation

Open under #96: ducts (25 of RE1 Mechanical's IfcFlowSegment), whose family (rectangular, round or oval) follows a shape that is not read. RE-129 found no link from a pipe or duct to its type; jakobhirn-bit's anchor and nominal size (Discussion #112, RE-131) pointed at the curve object, which the schema describes field by field.

Changes

  • examples/probe_re134_duct_connectors.rs: prints the schema's duct, connector and Rbs classes, every anchor with the bytes that follow it, each duct's and pipe's record and connector entries, and the type records.
  • tools/re/curve_fields_vs_ifc.py: reads width or diameter (+8), height (+16), type id (+64) and a duct's size text (+514) at each element's anchor and compares them with Revit's type Tag and profile.
  • tools/re/duct_bodies_vs_ifc.py, added to IFC_SCORERS in tools/ci/measure-reference-models.sh: the world-space box of each duct's geometry, rvt-rs against Revit.
  • reports/element-framing/RE-134-curve-fields-at-the-anchor.md, and a CHANGELOG entry.

Testing

Measure run 36736022239 on commit e30bf45, whose probe and scorers are byte-identical to this PR's (gh workflow run measure.yml --ref <branch> -f base=none -f probe=probe_re134_duct_connectors -f probe_scorer=curve_fields_vs_ifc), on the MIT RE1 Mechanical and Plumbing models and Revit's exports of them:

  • The type id at +64 is Revit's type Tag for 25 of 25 ducts and 69 of 69 pipes. This closes RE-129's negative: the link is in the element's own object.
  • A duct's width and height at +8 and +16 are two of Revit's three extrusion dimensions on 25 of 25, and the size text at +514 is width by height in millimetres on 25 of 25.
  • A pipe's height equals its width at the anchor on 69 of 69 (nominal sizes 10 to 100 mm).
  • rvt-rs's duct bodies on main already have Revit's world box on 25 of 25 (worst 0.00000 ft), so on RE1 there is no duct geometry left to recover.
  • Not found, and stated as such in the report: the round versus rectangular switch. All 25 ducts are rectangular, no redistributable model has a round or an oval duct, and a round duct is stored as width = height, like every pipe.

This PR changes the Measure script, so its own Measure run (36737207943) compares this branch's merge commit with main (bed2c72): the exported IFC of all 6 models is identical, and the duct scorer, which both sides run from the same tree, prints the same on both.

  • Required checks, MSRV 1.85 and the rest pass on GitHub's runners
  • Verified on real Revit files (MIT-licensed RE1 models) against Revit's own export; the probe and scorers reproduce it

Audit-honesty checklist

  • What is not established is stated: the duct family switch, the normal and the elevation offsets (seen, not compared), the connector references (not decoded), sloped and turned runs and fittings (no oracle)
  • Nothing user-visible changes, so no status page changes
  • No emojis, private paths or PII

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: public byte observations of the MIT RE1 models and their Revit IFC exports, and the anchor and size layout jakobhirn-bit gave in Discussion Set of findings #112 with credit
  • No new fixtures

Breaking changes

None.

Related issues

Refs #96.

@cursor

cursor Bot commented Sep 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_320d8798-37c8-4b6d-a333-ad1786ea72d4)

@DrunkOnJava
DrunkOnJava merged commit 8d028a2 into main Sep 30, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/re134-curve-fields branch September 30, 2026 15:39
DrunkOnJava added a commit that referenced this pull request Sep 30, 2026
… maintainer docs, grouped Dependabot, shorter artifact retention (#529)

## Summary

Brings the repository's GitHub side up to the standard an open-source project should meet, and writes it down: rulesets kept as code, a support page and a maintainer guide, grouped Dependabot updates, forms that apply the project's own labels, and shorter retention for CI's throwaway artifacts. Repository configuration and documentation only; nothing in the crate, the CLIs or the viewer changes.

## Motivation

An audit of the repository on 2026-09-30 (settings, rulesets, labels, milestones, issues, branches, Actions, security features) found these gaps, each fixed on GitHub first and recorded here:

- `main-protection` had no pull-request rule; ADR-005 decided one and was still "Proposed" because the automation token had been refused. There was no protection for release tags.
- Code scanning was not configured, and actions were pinned by SHA by convention but not by rule.
- No `SUPPORT.md`, and nothing that says how issues are triaged, what the labels mean or how the repository is kept in order.
- The bug and feature forms applied `bug` and `enhancement`, a second taxonomy beside the project's `type:*` labels; nine open issues had no labels at all.
- The Actions cache was over its 10 GB limit (2.9 GB of it belonged to closed pull requests and deleted branches), and every pull request's CI run kept its smoke wheels and evidence bundle for 90 days.
- The `0.4.0` milestone was still open after v0.4.0 shipped, with 12 open issues.

## Changes

- `.github/rulesets/main-protection.json` (was `main-protection.proposed.json`) and `release-tags.json`: the live rulesets. `main-protection` gains the pull-request rule (0 approvals, threads resolved, squash only; the maintainer bypass is unchanged), and `release-tags` stops `v*` tags being created, moved or deleted by anyone but a maintainer. ADR-005 is marked accepted and applied.
- `.github/SUPPORT.md` and `docs/maintaining.md`: where to ask what, and how issues are triaged and labelled, what a pull request has to pass, how releases and the security settings work, and the housekeeping checklist. `CONTRIBUTING.md` links the guide.
- `.github/dependabot.yml`: minor and patch updates grouped per ecosystem; majors stay separate.
- `.github/ISSUE_TEMPLATE/bug_report.yml` and `feature_request.yml`: `type:bug` and `type:feature`.
- `.github/workflows/ci.yml`: smoke wheels kept 7 days; the evidence bundle 90 days on `main` and 14 on a pull request's run.
- `ROADMAP.md`, `docs/contribution-map.md`: the geometry slices are the `0.4.x` milestone; the contribution map's remainders are regenerated from the tracker (25 open issues).
- `CHANGELOG.md`.

Done through the GitHub API in the same pass, with no file to change: CodeQL default setup for the workflows, JavaScript and TypeScript, and Python (Rust is not accepted by default setup); full-SHA pinning required for actions; the `0.4.0` milestone closed and its 12 open issues moved to a new `0.4.x` milestone; the 12 issues that lacked labels labelled; the labels `community`, `needs-split`, `rust`, `github-actions` and `viewer` created; 1,195 caches of closed pull requests and deleted branches deleted, and two superseded remote branches (their commits stay reachable from PR #275) removed.

## Testing

N/A: no code path changes. What was checked instead:

- `.github/workflows/ci.yml` and `.github/dependabot.yml` parse as YAML, the two ruleset files as JSON, and every workflow action reference is a full-SHA pin (so requiring pins breaks nothing).
- The live rulesets were applied from these files' content; PR #527 merged under the tightened `main-protection` by the maintainer bypass, and this PR needs the five required checks.
- Nothing reads `main-protection.proposed.json` but ADR-005, which now points at the new name; the retention change touches only the two upload steps that had no shorter setting, and no job downloads either artifact.

## Audit-honesty checklist

- [x] Docs and configuration state what is in force today; nothing claims a setting that is not on
- [x] The one setting that could not be enabled is stated: secret scanning's non-provider patterns and validity checks stay off (the API accepts the request and leaves them disabled)
- [x] No emojis, private paths or PII

## Legal and contribution hygiene

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

## Breaking changes

None. Direct pushes to `main` by anyone but a maintainer, and creating, moving or deleting `v*` tags by anyone but a maintainer, are now refused; none happened before.

## Related issues

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