Repository navigation
fix(entities): VERTEX (2D) stores its tangent on every vertex (§20.4.11, #272) - #287
Merged
Merged
Conversation
… end width after a negative start width (§20.4.11, #272)
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
VERTEX (2D) reads its tangent direction on every vertex, as §20.4.11 prints it, instead of only when flag
0x02is set, and reads no end width after a negative start width. Closes #272.Spec reference
ODA spec v5.4.1 §20.4.11 VERTEX (2D) (10), p114:
Flags EC,Point 3BD,Start width BD(negative means both widths, with no end width stored),End width BD,Bulge BD, R2010+Vertex ID BL, thenTangent dir BDon every release.Evidence
RLboundary. Before:VERTEX_2D data fields ended at bit 221, data stream ends at 223 (delta -2).cargo run --release --example spec_examplesgivesOK: 417 checks;--updatemoved its row fromerror #272toclosesand rewrote its coverage note.tools/corpus/measure.pyover all 52 pinned drawings matches every row oftools/corpus/baseline.tsvunchanged.The existing unit test
roundtrip_simple_vertex_r2000wrote a vertex without a tangent and assertedNone, pinning the old reading; it now writes the tangent and expectsSome(0.0). 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.11 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.