On Sun, 2011-07-24 at 01:37 +0200, Kai-Martin Knaak wrote: > Peter Clifton wrote: > > > adding a feature for snapping to off-grid points along the body of a > > track. > > Sounds good, but I don't quite understand the details. Where exactly > are these points? Try it and you will see ;) Basically, when you're over the line, the snap code picks the nearest grid point to where your mouse pointer is, then casts out from it in vertical, horizontal and both 45 degree angles in between, until it hits the line your mouse pointer is over. Any of the intersections between the cast lines and the line you're over will snap - the closest to your mouse pointer is choesen. From the commit message: commit 9e33678b20433f571c54009c704e75d114a3ea10 Author: Peter Clifton <pcjc2@xxxxxxxxx> Date: Sat Jul 23 20:47:47 2011 +0100 crosshair.c: Snap to points along off-grid lines when drawing tracks This should greatly easy making tidy layouts where some lines have (perhaps by necessity) ended up off-grid. This patch adds code to snap onto the center of a line. It finds the nearest grid point to the cursor, then will allow snapping at the intersections between the line in question and the lines of an imaginary X and + centered on the nearest grid-point to the cursor. This allows neat drawing of horizontal, vertical and 45 degree lines which will land correctly on the existing line.
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user