Repository navigation
fix(entities): POLYLINE (MESH) reads §20.4.34's curve type and its fields in the spec's order (#273) - #288
Merged
Conversation
…s before its densities, and the R2004+ owned count (#273)
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. |
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
POLYLINE (MESH) reads §20.4.34's six
BSin the spec's order (flags, curve type, M and N vertex counts, M and N densities) plus the R2004+ owned-object count. It read fiveBS, without the curve type and with the densities before the counts, and took noVersion. Closes #273.Spec reference
ODA spec v5.4.1 §20.4.34 POLYLINE (MESH) (30), p130:
Flags BS 70,Curve type BS 75,M vert count BS 71,N vert count BS 72,M density BS 73,N density BS 74, R2004+Owned Object Count BL.Evidence
RLboundary: flags 17, curve type 0, a 6 × 7 grid, densities 0. Before:POLYLINE_MESH data fields ended at bit 107, data stream ends at 109 (delta -2), and its order would have read N = 0.cargo run --release --example spec_examplesgivesOK: 417 checks;--updatemoved the row fromerror #273tocloses.tools/corpus/baseline.tsvare unchanged. The module's docs now say the spec example is the list's only measurement.The module's existing unit tests round-trip the decoder through a local writer helper; that helper now writes §20.4.34's order and the calls pass a
Version. No test is added.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo test --release --all-featurescargo run --release --example spec_examples(OK, 417 checks)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:
CLEANROOM.md).dwg-rsis Apache-2.0 and must remain compatible.My contribution is based on the ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1), §20.4.34 and its example. No other source was read.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the
Developer Certificate of Origin 1.1.
Specifically, I affirm that the contribution is my own work (or rightfully
licensed to me) and that it can be distributed under the project's Apache-2.0
license.