Skip to content

feat(objects): decode IMAGEDEF_REACTOR and RASTERVARIABLES (§20.4.82, §20.4.91, #150) - #305

Merged
DrunkOnJava merged 5 commits into
mainfrom
obj/image-companions
Oct 26, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
obj/image-companions

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Decode IMAGEDEF_REACTOR (§20.4.82) and RASTERVARIABLES (§20.4.91): the common object data and a BL class version, RASTERVARIABLES with three BS after it. The dispatcher had no class-name arm for either, so they were skipped on every release. The DXF class name of the first is IMAGEDEF_REACTOR; the spec spells it IMAGEDEFREACTOR, and both route.

Spec reference

§20.4.82 IMAGEDEFREACTOR and §20.4.91 RASTERVARIABLES (tracking #150). The spec's field lists close as printed; nothing departs from them.

Test plan

  • cargo fmt --all -- --check and cargo clippy --all-targets --all-features -- -D warnings pass on this branch. cargo test, cargo doc and the 1.85 MSRV check run once on a merge of this lane's open branches instead of per branch (the machine is at memory pressure red); the result goes in a comment.

  • Shown on real files, no new unit tests: cargo run --release --example probe_imagedef_reactor -- <corpus> and cargo run --release --example probe_rastervariables -- <corpus> over the 52 pinned drawings. Each closes on its boundary and compares every decoded value with AutoCAD's DXF export by handle.

    Release IMAGEDEF_REACTOR RASTERVARIABLES Values compared with the DXF Differ
    R14 1 closes 1 closes no twin (boundary only)
    R2000 to R2018 (6 releases) 6 close 6 close 6 class versions + 24 RASTERVARIABLES values 0
  • Corpus baseline regenerated: decoded +14, skipped -14, errored unchanged (7 rows, one drawing per release holds both).

  • Tests touched: none. The probes and their shared harness examples/support/twin.rs are new examples, not tests.

  • The DXF oracle does not score these two types yet.

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. The ODA's public Open Design Specification for .dwg files PDF (v5.4.1, sha256 973628f3…f504b) is explicitly allowed (see CLEANROOM.md).
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

My contribution is based on:

  • The ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1);
  • The corpus bytes and AutoCAD's own DXF exports of the pinned drawings (the oracle);
  • No reading of comments or code in any other project.

Developer Certificate of Origin

By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.

… §20.4.91, #150)

Both objects are the common object data and a class version, RASTERVARIABLES
with three BS after it. The dispatcher had no class-name arm for either, so
the 14 records of the corpus's seven IMAGE-bearing drawings (R14 to R2018)
were skipped; each closes on its data-stream boundary.

Against AutoCAD's DXF export (R2000 to R2018) all 30 values equal the groups
that carry them; R14 has no twin.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T20:31:44.381099Z 48bcebb 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.

…y in the list sits apart from its siblings' (rustfmt sorts the list)
# Conflicts:
#	ARCHITECTURE.md
#	docs/spec-coverage.md
#	tools/corpus/baseline.tsv
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 26, 2026 20:33
@DrunkOnJava
DrunkOnJava merged commit eaebb92 into main Oct 26, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the obj/image-companions branch October 26, 2026 20:37
DrunkOnJava added a commit that referenced this pull request Oct 27, 2026
…acle (#350)

The decoders of #305 (§20.4.82, §20.4.91) are now compared with
AutoCAD's export field by field: IMAGEDEF_REACTOR's class version in
group 90 of AcDbRasterImageDefReactor, and RASTERVARIABLES' class
version, display frame, display quality and units in groups 90, 70, 71
and 72 of AcDbRasterVariables. The reactor's IMAGE is a handle the
decoder does not read and stays not-decoded. The oracle's section map
now files the two classes under §20.4.82 and §20.4.91.

On the 49 drawing pairs: 6 records of each, R2000 to R2018; all 6 and
24 decoded values equal the export. tools/oracle/baseline.tsv gains the
30 new rows, and the two rows of docs/spec-coverage.md say what the
oracle measured.

Refs #99, #102, #150
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