Files
OneCAD-Draft/src/scene
Hakan SevenandClaude Sonnet 4.6 19bb846c50 fix: dimension line geometry and DXF rotation unit mismatch
append_linear_dimension() applied the same perp offset to both d1 and d2,
but only d2 is guaranteed to be at the definition_point level; d1 must be
projected independently onto the dimension line, otherwise non-collinear
first/second points produce a parallelogram instead of a rectangle.

Fix: compute dim_line_pos = def.dot(perp) and project each endpoint
separately so the dimension line is always parallel to axis.

Additionally, the acadrust DXF reader stores LinearDimension.rotation from
group code 50 (degrees) without converting to radians, while DWG and our
own annotation commands store it in radians.  Add a post-load fixup in
load_file() that converts the rotation to radians for DXF files so
tessellation can call cos/sin uniformly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 16:57:23 +03:00
..
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00