Would this be helpful - a way to snap a line (or curve) to a curve, without making sure it's a tangent. Applies to objects being moved more than objects being created, I think.
- Find the point on the object being moved closest to where the user clicked.
- Snap that point to the target object, moving the whole object along with it.
Note that there's no actual node at the point on the moved object closest to the user's click, it's just a reference position.
This would allow a line to be placed against a curve... which would be a tangent if the curve was a circle, but otherwise is just a line touching a curve. But even so, I don't think there's an easy way to do that currently?
On a related note, how do you move a node along the path it's already on, or in the case of the end node extend it? I have trouble getting that feature to work consistently.
Cheers -Terry
On Sun, 16 Sep 2007 19:21:15 +0200 Diederik van Lierop <mail@...2312...> wrote:
Hi A.J.,
Snapping to the center is already available in the current SVN versions, and snapping to the midpoint of a straight line shouldn't be too difficult to implement.
Snapping tangentially however is another story, as it requires line-to-line snapping. Currently we only do point-to-point and point-to-line snapping. The calculations for snapping to a line are provided by some libraries, but as far as I can tell they do not provide line-to-line calculations. A simple case, such as snapping a rectangle tangentially to a circle, shouldn't be too difficult to build ourselves. Snapping any BeziƩr path tangentially to any another object however requires quite some sophisticated programming unfortunately. So although it's very useful, don't expect such a feature any time soon :-(.
Diederik
A.J. Carter wrote:
I'm really pleased to have discovered inkscape recently and it's fantastic that it's free and open source. In the past I've used autodesk autosketch (a cut down version of autocad) for "non-cad" scientific/technical illustrations for publication in papers etc.
One feature which I find makes drawing easier is the ability to set snapping constraints, like "endpoint", "midpoint", "centre", "tangent" when both drawing an element and selecting to transform an existing element (the cursor jumps and changes shape to indicate which snap is currently in action). I wondered if any similar feature exists in inkscape, or whether it might be considered for the roadmap?
Thanks
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user