mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
While a fence (Fence, or Quick mode's two-point fence) or a crossing window is drawn, every piece it will remove (EXTEND: every stretch it will add) is highlighted with the same band as a single pick. - trimextend.rs: fence() and crossing() are split into fence_work()/crossing_work(), which find what they cut, and run_picks(). picks_preview() works the same run out without changing the drawing: each object at its picks in turn, against edges that include what the run has already made of other objects (Overlay), so the preview follows a fence whose trims change each other's edges. - modify/trim.rs: trim_kind() and extend_kind() trim or extend a shape; edge_segments_over() gathers edges with an Overlay in place of the objects it names. - Interactive::highlight_all / Session::highlight_all; the canvas draws it in place of the object under the cursor. Tests: a fence highlighting both lines it crosses, the drawing untouched; a fence through a grid and a circle removing exactly the highlighted length; Quick mode's two-point fence and a crossing window; an EXTEND fence adding exactly what it highlighted.