Repository navigation
fix(entities): route the R14 LWPOLYLINE and HATCH classes and read LWPOLYLINE's R13-R14 vertices (#229) - #264
Merged
Merged
Conversation
…POLYLINE's R13-R14 vertices (#229) §20.4.85 and §20.4.75 type LWPLINE and HATCH (varies): on R14 both carry a class number from AcDb:Classes rather than the fixed codes 0x4D and 0x4E, and dispatch routed only the fixed codes, so all 24 R14 LWPOLYLINE and 8 R14 HATCH records of the public corpus were skipped. Routing the class names measures them. HATCH closes as it stands; LWPOLYLINE also needs §20.4.85's R13-R14 branch, a 2RD for every vertex. All 32 records close, and each decodes to the same value as the R2000 save of the same drawing, handle by handle, which examples/probe_cross_release.rs checks. ARCHITECTURE.md §7q records it; §20.4.85 moves to closes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ff4821c0e
ℹ️ 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".
This was referenced Oct 26, 2026
Merged
# Conflicts: # ARCHITECTURE.md # docs/data/spec-coverage.tsv # docs/spec-coverage.md # tools/corpus/baseline.tsv
A handle of the kind present in only one of the two saves was counted (left-only) or ignored (right-only) without failing, and a run that compared nothing exited 0. Both now fail, with every unmatched handle listed.
# Conflicts: # ARCHITECTURE.md # docs/data/spec-coverage.tsv # docs/spec-coverage.md # tools/corpus/baseline.tsv
DrunkOnJava
enabled auto-merge (squash)
October 26, 2026 15:07
This was referenced Oct 26, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…d say what measured them (#140, #147, #148, #133, #127) (#398) Seven rows leave partial for closes because no record of any kind errors on the 52 drawings of run 40532346172 and the errors their notes still quote were fixed: TEXT, ATTRIB, ATTDEF (#258), MTEXT (#261), VIEW (#263, #284), DIMSTYLE (#293) and HATCH (#264, the R14 records routed). §22 AcDb:Template goes from missing to partial: dxf_header reads $MEASUREMENT from it (#320). §9 stays closes, now tracked by #127 (R13) and carrying the per-release evidence behind closing #128, #129 and #130. The page's Last measured line and the paragraph that said closes came from a local 19-file corpus are updated.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…ain run (#195) (#401) * docs(spec-coverage): move the rows the 2026-10-27 main run proves, and say what measured them (#140, #147, #148, #133, #127) Seven rows leave partial for closes because no record of any kind errors on the 52 drawings of run 40532346172 and the errors their notes still quote were fixed: TEXT, ATTRIB, ATTDEF (#258), MTEXT (#261), VIEW (#263, #284), DIMSTYLE (#293) and HATCH (#264, the R14 records routed). §22 AcDb:Template goes from missing to partial: dxf_header reads $MEASUREMENT from it (#320). §9 stays closes, now tracked by #127 (R13) and carrying the per-release evidence behind closing #128, #129 and #130. The page's Last measured line and the paragraph that said closes came from a local 19-file corpus are updated. * docs(criteria): re-measure the 1.0 requirements from the 2026-10-27 main run (#195) Header, R2, R3, R4, R8, X1 and S3 now carry what run 40542129639 (main 61255e9) and docs/data/spec-coverage.tsv say: 52 drawings with 0 errored records and 533 skipped, 53 sections scored by the DXF oracle with 22 values disagreeing, 90 closes, 13 partial, 6 decoder and 29 missing rows, a wasm32 compile of the library in the Clippy job. X1 (DXF) moves from not measured to failed: the HEADER, TABLES, ENTITIES and BLOCKS probes pair the written records with AutoCAD's export and find 0 groups disagreeing, and 342 entity records of 18 kinds and the OBJECTS section are not written. No other status changes. * docs(criteria): R3 counts the rows #398 moves: 97 closes, 7 partial, 6 decoder, 28 missing (#195) The counts are those of docs/data/spec-coverage.tsv with #398, whose moves run 40532346172 proves.
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
Route the R14
LWPOLYLINEandHATCHclasses to their decoders, and read LWPOLYLINE's R13-R14 vertex branch. All 24 R14 LWPOLYLINE and 8 R14 HATCH records of the public corpus now decode, and every one closes on its boundary. Each decodes to the same values as the R2000 save of the same drawing, handle by handle. Part of #229; what remains of it (MULTILEADER before R2010, LAYOUT before R2004 and on R2007, GEODATA) is recorded on the issue.Spec reference
§20.4.85 LWPLINE and §20.4.75 HATCH are typed
(varies). On R14 both carry a class number from AcDb:Classes rather than the fixed codes0x4D/0x4E, and dispatch routed only the fixed codes. This PR adds two class-name arms indecode_from_raw_with_class_map.HATCH closes as it stands. LWPOLYLINE also needs §20.4.85's R13-R14 Only branch: every vertex is a
2RD, where R2000+ write the first as2RDand the rest as2DDagainst the previous vertex. Without that branch the records stopped 248 to 568 bits short.Records it was measured on
R14 has no DXF twin. AutoCAD keeps handles across a save-as, so the new
examples/probe_cross_release.rscompares the decoded value of every handle of a type between two saves of one drawing:sample_AC1014.dwg/sample_AC1015.dwgsample_AC1014.dwg/sample_AC1015.dwgpolyline2d_line_R14.dwg/polyline2d_line_2000.dwgThe vertices are equal as doubles, bit for bit.
Coverage,
../../samplesUnchanged, TOTAL 3911 / 525 / 9 (the three nextgis R14 files of the 19 hold neither type).
Public corpus:
tools/corpus/baseline.tsv(regenerated, committed)measure.py checkpasses against the committed baseline. No other column moves. It will be regenerated on top of whatever lands first in the serial rebase.Class census and reference closure
Unchanged on all 19 files of
../../samplesand in the 52-row baseline.Docs
docs/data/spec-coverage.tsv: §20.4.85 →closes. §20.4.75 stayspartialbecause of the one VIEW, DIMSTYLE, 3DSOLID, REGION and HATCH error on some releases of the public corpus #228 record, and its note now records the R14 routing.docs/spec-coverage.mdis regenerated.src/entities/lwpolyline.rs: the stream shape gains the R13-R14 branch.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningsRUSTFLAGS="-D warnings" cargo test --release --all-features(real-file tests ran against../../samples)RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-featurestools/corpus/measure.py checkpasses against the committed baselineSource-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:
CLEANROOM.md).My contribution is based on §20.4.75 and §20.4.85 of the ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1) and on the corpus bytes. No third-party code or comments were read.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.