Repository navigation
feat(objects): decode SPATIAL_FILTER from §20.4.94 (#149) - #308
Merged
Merged
Conversation
The clip boundary of an xref or block insert is a BS point count, 2RD points, an extrusion and origin, three BS switches with their optional BD distances, and two matrices of 12 BD. The dispatcher had no class-name arm for it, so the one record of each release was skipped; all 7 close on their data-stream boundary from R14 to R2018. Against AutoCAD's DXF export (R2000 to R2018) all 234 values of the 6 records with a twin equal it.
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. |
…n the list sits apart from its siblings' (rustfmt sorts the list)
…ares, so the copies merge in any order
…c so rustdoc does not read it as a link (#149)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 838138dec5
ℹ️ 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".
…roup 41, not 40 (#149)
# Conflicts: # ARCHITECTURE.md # docs/data/spec-coverage.tsv # docs/spec-coverage.md # tools/corpus/baseline.tsv
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
Decode SPATIAL_FILTER (§20.4.94), the clip boundary of an xref or block insert:
BSnumpts,2RDpoints, an extrusion and an origin, threeBSswitches with their optionalBDdistances, and two matrices of 12BD. The dispatcher had no class-name arm for it, so the one record of each release was skipped.Spec reference
§20.4.94 SPATIAL_FILTER (tracking #149). The field list closes as printed. The spec calls each matrix "double [4][3], column major order"; the values arrive as three rows of four with the translation last (ARCHITECTURE.md §7x has the corpus values), and are kept in stream order, which is the order of the DXF's 24 groups 40.
Test plan
cargo fmt --all -- --checkandcargo clippy --all-targets --all-features -- -D warningspass on this branch.cargo test,cargo docand 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_spatial_filter -- <corpus>over the 52 pinned drawings. It closes on the boundary and compares every decoded value with AutoCAD's DXF export by handle.Corpus baseline regenerated: decoded +7, skipped -7, errored unchanged (7 rows).
Tests touched: none.
examples/probe_spatial_filter.rsand the shared harnessexamples/support/twin.rsare new examples, not tests.The DXF oracle does not score SPATIAL_FILTER yet. Neither clip switch is on in the corpus, so the optional front and back distances are not exercised by a real record.
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:
973628f3…f504b) is explicitly allowed (seeCLEANROOM.md).My contribution is based on:
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.