Skip to content

research(saved-graphics): CI only, not for merge: #2085's test-only coordinated join - #2141

Closed
DrunkOnJava wants to merge 3 commits into
mainfrom
red/2085-coordinated-join-ci
Closed

DrunkOnJava wants to merge 3 commits into
mainfrom
red/2085-coordinated-join-ci

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A draft opened only to run CI on the research branch's export code. It will not be merged. research/2085-ring-join, where #2085's research lives, does not merge with main, so it gets no CI. This draft carries its change to src/research/native_saved_mesh.rs, applied to main, so that clippy and the tests read it. It is closed once they have.

The commit adds a coordinated join to the saved-graphics ring reader, off unless RVT_2085_COORDINATED_JOIN is set. It joins a stored gap only where two rings share one stored edge with the gap at the same stored end of it, each ring's other edge leads to a spline face, and both gaps are under 1e-4 ft. Then the ring reading last/first keeps Q and the one reading first/first or last/last keeps P, as Revit does at a contributor's chair corners. With the variable unset, every branch it touches is the existing code, so no export changes.

Testing

Unit tests are banned in this repository: do not add them.

  • Four failure-first tests of the pure join, under the pure-helper exception:
    • a wide gap joins only where it is approved;
    • keeping Q drops the ring's own point;
    • an approved gap at the limit stays refused;
    • the closing gap keeps the end it is told to.
  • Clippy and cargo test --profile ci --lib: this draft's CI.
  • Byte identity with the switch off: all 101 exports and diagnostics (Measure run 45002253953, on the research branch).

Part of #2085.

…T_2085_COORDINATED_JOIN is set, takes a stored gap two rings hold at the end the chair save's rule names (#2085)
… one stored edge they share and the spline face each one's other edge leads to (#2085)
…e tests' only, since the export joins through the coordinated form (#2085)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Closed as planned: CI read the export code, and clippy and the four tests of the join pass. The code stays on research/2085-ring-join (#2085).

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