Skip to content

feat(objects): decode RAPIDRTRENDERENVIRONMENT to its record boundary (#152) - #427

Merged
DrunkOnJava merged 5 commits into
mainfrom
feat/render-environment-class
Oct 28, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
feat/render-environment-class

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Decodes RAPIDRTRENDERENVIRONMENT (8 records, the RapidRT renderer's environment; its C++ class is AcDbIBLBackground), from a layout derived from the records' own bits. State decoder: the boundary closes, the values are unscored, because the two drawings that hold the class (3d.dwg and Draw2.dwg of the pinned kurema/BookViewerApp3 drawings, AC1014) have no DXF export in the corpus.

Spec reference

None: ODA spec v5.4.1 prints no layout for the class, so there is no docs/data/spec-coverage.tsv row; the class row in docs/spec-coverage.md ("Classes the spec does not prescribe") is new, at decoder. Layout and what the bytes settle: ARCHITECTURE.md §7br (provisional letter). Method and the no-twin rule: CLEANROOM.md (2026-10-28), the same rule #425 applied to ACSH_CYLINDER_CLASS and ACSH_REVOLVE_CLASS.

Evidence (data bits read as data from the pinned drawings with a throwaway reader; the decoder is measured by this PR's Corpus job):

Drawing Records Close
3d.dwg 2 2
Draw2.dwg 6 6

The list is BL version (2), B, TV (an HDR file path), BD (0.0), B. Every record is 11 bits, the text and 3 bits, and the path is 74 to 93 characters long, so the one thing that varies between the records is the width of the text; the list closes on the RL data size on all eight. Both flags vary across the records.

Expected corpus baseline change: decoded +8, skipped -8, errored 0; the baseline is committed from the Corpus job's artifact.

Not settled by the bytes, and said so in ARCHITECTURE.md and the spec-coverage row: the roles of the version, the two flags and the rotation, and whether the leading BL is a BS (they read the same). The field names follow the IBL background's groups in Autodesk's public DXF Reference, recalled, for names only.

Test plan

  • cargo fmt --all -- --check, python3 tools/ci/spec_coverage.py --check and python3 tools/maintainer/train/arch.py check pass locally
  • Clippy, Test, Documentation and the Corpus job run on CI only (no local builds)
  • Shown working on real files: the Corpus job's per-file decode counts for the eight records. probe_render_environment is added for a reader to run over the corpus; it was not run here, since builds and probes run on CI only
  • No new unit tests. Tests touched: none.

Source-provenance declaration

By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:

  • No Autodesk DWG SDK source (RealDWG, ObjectARX, ObjectDBX) or NDA-protected Autodesk documentation was consulted or imported.
  • No Open Design Alliance Teigha / Drawings SDK source was consulted or imported.
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

My contribution is based on the data bits of the pinned public corpus drawings (data files only), by the method recorded in CLEANROOM.md (2026-10-26 and the 2026-10-28 entry for classes with no DXF twin). Autodesk's public DXF Reference was recalled for the field names only, disclosed in the CLEANROOM.md entry. No third-party DWG or DXF implementation was consulted, ACadSharp's and ezdxf's reading code, comments, tests and derived data included.

Developer Certificate of Origin

I affirm that the contribution is my own work and can be distributed under the project's Apache-2.0 license.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T11:10:15.262837Z e9e03a1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9611e2ff3f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/entities/dispatch.rs Resolved
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 28, 2026 11:16
@DrunkOnJava
DrunkOnJava merged commit 14c05de into main Oct 28, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/render-environment-class branch October 28, 2026 11:35
DrunkOnJava added a commit that referenced this pull request Oct 28, 2026
…, and record them (#437)

README named LIGHT, ACSH_CYLINDER_CLASS, ACSH_REVOLVE_CLASS and RAPIDRTRENDERENVIRONMENT as skipped; they decode since #425, #426 and #427, and main's baseline now skips 32 records. CHANGELOG records those and the HATCH and TOLERANCE scorers (#389, #392).
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