Resolve viewport dimension features and preserve valid measurements on refresh

This commit is contained in:
Christopher Overbeck committed 2026-09-15 14:53:45 -05:00
1 parent 7f018ab0f1
commit 64ce0b2e8c
11 files changed
+1680 -344

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# Viewport association fixture
`viewport_associations.dxf` is a synthetic paper-space fixture for line, circle,
arc, polyline, spline, block-instance, and intersection references through one
1:2 viewport. `src/app/viewport_dimension_tests.rs` loads it and exercises actual
association refresh and an edit to the second intersection source.
Each dimension carries `DIMLFAC=-2` and `ACAD_DIMASSOC_CALC_DIMLFAC=-2`. These are
necessary for its paper definition points and saved model measurements to agree;
the original fixture omitted both factors. The spline tangent also uses the
actual touch point `(90, 283.125)` at parameter `0.75`, measured from `(0, 300)`.
The original endpoint `(120, 300)` was not tangent. Tests verify the cross product
with the spline derivative and preservation after an unsupported reference edit.
The larger original `115448.dxf` is private and is not included. An opt-in test
uses `OPENCAD_VIEWPORT_REGRESSION_DXF` to read a local copy without modifying it.