cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven a3e9b05130 fix(hatch): stop drawing ghost line between boundary polylines
The polyline arm of the hatch wire outline guarded its NaN separator
with `if count > 0 && pts.len() != start_idx`. `start_idx` was assigned
to `pts.len()` two lines earlier with nothing in between to grow `pts`,
so the inequality was structurally always false — the separator was
never emitted.

When a hatch carried more than one boundary path (multi-region hatch),
the renderer drew a straight segment from the last vertex of path A to
the first vertex of path B because the two polylines lived in `pts`
back-to-back with no NaN break. The result was a visible stray line
between hatch regions.

Switch the polyline arm to the same `if !pts.is_empty()` guard the
Line / CircularArc / EllipticArc arms use, and capture `start_idx`
*after* the separator so the closed-loop close-back logic still points
at this polyline's first real vertex.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 18:16:40 +03:00
..
app refactor(entities): collocate ui_name + dxf_name into entities/names.rs 2026-05-26 17:18:47 +03:00
command cargo fmt 2026-05-12 10:36:15 +03:00
entities fix(hatch): stop drawing ghost line between boundary polylines 2026-05-26 18:16:40 +03:00
io chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
modules refactor(common): unify bulge → arc math into BulgeArc 2026-05-23 23:42:26 +03:00
scene refactor(entities): Solid3D/Region/Body accessor trio in entities/solid3d.rs 2026-05-26 17:22:02 +03:00
shaders perf(wire): switch wire pipeline to instanced rendering 2026-05-23 09:52:23 +03:00
snap chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
ui chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
lib.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
linetypes.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
main.rs chore(release): drop flatpak, add macOS .dmg, hide Windows console 2026-05-20 21:13:02 +03:00
patterns.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
update_check.rs chore(deps): bump to latest stable versions 2026-05-23 22:21:30 +03:00