cad-editor/src/modules/home
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 5e36e85e07 refactor(common): unify bulge → arc math into BulgeArc
The same DXF/DWG bulge → (center, radius, sweep) formula was inlined
in six places (hatch outline, polyline tess + truck path, lwpolyline
×4, scene hatch fill, explode bulge_to_arc) — each with subtly
different sweep-direction handling for the bulge sign.

Add `entities::common::BulgeArc { center, radius, start_angle,
end_angle, sweep }` with one `from_bulge(p0, p1, bulge)` constructor
and a `sample(t)` helper. Callsites collapse to a few lines.

Net: -121 lines, one canonical sweep-direction convention shared by
all consumers.

array.rs (the path-along-curve f32 helper) keeps its inline math —
its sign convention is inverted relative to the others and changing
it without exercising the array-path command risks regressing the
output.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:42:26 +03:00
..
clipboard Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
draw chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
groups Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
inquiry cargo fmt 2026-05-12 10:36:15 +03:00
layers cargo fmt 2026-05-12 10:36:15 +03:00
modify refactor(common): unify bulge → arc math into BulgeArc 2026-05-23 23:42:26 +03:00
properties Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
about.rs feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
changelog.rs feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
defaults.rs first commit 2026-03-22 14:56:27 +03:00
donate.rs feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
mod.rs feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
report.rs feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
select.rs Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00