Snapping to nodes (within same path)
Hi all,
Mostly to Diederik: can nodes of a path snap to nodes of the same path when nodeediting them? It seems they can't, but perhaps I should switch another toggle somewhere?
Regards, Johan
__________________________________________________ ir. J.B.C. Engelen PhD student Micro Electromechanical Systems (MEMS) TST EWI, University of Twente The NETHERLANDS e-mail: j.b.c.engelen@...1887...
Hmm, I have posted that as a bug https://bugs.launchpad.net/inkscape/+bug/175809 some time ago, but somewhere in the middle of January this was fixed. However, in the latest build that I have (Inkscape0802251709.7z) this doesn't work again.
I'm using Win32.
Rok
On Tue, Feb 26, 2008 at 2:43 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Mostly to Diederik: can nodes of a path snap to nodes of the same path when nodeediting them? It seems they can't, but perhaps I should switch another toggle somewhere?
Regards, Johan
ir. J.B.C. Engelen PhD student Micro Electromechanical Systems (MEMS) TST EWI, University of Twente The NETHERLANDS e-mail: j.b.c.engelen@...1887...
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Rock Star wrote:
Hmm, I have posted that as a bug https://bugs.launchpad.net/inkscape/+bug/175809 some time ago, but somewhere in the middle of January this was fixed. However, in the latest build that I have (Inkscape0802251709.7z) this doesn't work again.
That's strange, because I'm not aware of fixing that. In fact, so far I've always considered snapping to itself undesirable ;-).
I guess it must have been a side effect then of one of my patches.
Should it really be possible to snap to itself? If so, then I should have a look at that and see that it gets implemented well...
Diederik
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of Diederik van Lierop Sent: dinsdag 26 februari 2008 17:05 To: Rock Star Cc: inkscape-devel@lists.sourceforge.net; Engelen, J.B.C. (Johan) Subject: Re: [Inkscape-devel] Snapping to nodes (within same path)
Rock Star wrote:
Hmm, I have posted that as a bug https://bugs.launchpad.net/inkscape/+bug/175809 some time ago, but somewhere in the middle of January this was fixed. However, in the latest build that I have (Inkscape0802251709.7z) this
doesn't work again.
That's strange, because I'm not aware of fixing that. In fact, so far I've always considered snapping to itself undesirable ;-).
I guess it must have been a side effect then of one of my patches.
Should it really be possible to snap to itself? If so, then I should have a look at that and see that it gets implemented well...
Hi Diederik,
Yes, I would like it very very much. For example it makes closing paths much easier. (if you have a C-shaped path and want to 'close' it to an O)
Thanks! Johan
I think this was considered undesirable when it was getting in the way while transforming objects - I remember it resulted in some erratic behavior then. But when limited to Node tool, I think it's useful, and in fact there it is even more useful than snapping to other paths' nodes, if only because we can still only edit one path at a time, which means that path's nodes are visualized and others' are not.
bulia byak wrote:
I think this was considered undesirable when it was getting in the way while transforming objects - I remember it resulted in some erratic behavior then. But when limited to Node tool, I think it's useful, and in fact there it is even more useful than snapping to other paths' nodes, if only because we can still only edit one path at a time, which means that path's nodes are visualized and others' are not.
Snapping to nodes does not depend on the visibility of the nodes, neither for the selector tool nor for the node tool. So while editing one path, we can snap to the invisible nodes of other paths.
We currently have a mechanism to avoid "self-snapping" for objects, which works nicely now. In fact this mechanism is basically no more than just passing a list of objects which should not be snapped to. When in node tool however, we similarly need to pass the location of the node that is being dragged and should not be snapped to. I've just tried to make the node tool snap to it's own nodes, but it's now also "self-snapping" to the node being dragged... This is the same erratic behavior we saw way back while transforming objects. I'll have to fix that before committing a patch, so I won't make it tonight ;-)
Diederik
On Tue, Feb 26, 2008 at 4:07 PM, Diederik van Lierop <mail@...1689...> wrote:
Snapping to nodes does not depend on the visibility of the nodes, neither for the selector tool nor for the node tool. So while editing one path, we can snap to the invisible nodes of other paths.
Yes. I was just saying that it's a little strange, in Node tool, to be able to snap to invisible nodes of unselected objects and not to visible nodes of the selected one. Actually, now that I think of it, perhaps it even makes sense to reverse that and let Node tool only snap to visible nodes in selected object(s) - what do others think?
that is being dragged and should not be snapped to. I've just tried to make the node tool snap to it's own nodes, but it's now also "self-snapping" to the node being dragged...
Ah, yes, now I remember it was indeed a problem. So basically we need to tell it the node to which not to snap, not object.
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of bulia byak Sent: dinsdag 26 februari 2008 22:12 To: Diederik van Lierop Cc: inkscape-devel Subject: Re: [Inkscape-devel] Snapping to nodes (within same path)
On Tue, Feb 26, 2008 at 4:07 PM, Diederik van Lierop <mail@...1689...> wrote:
Snapping to nodes does not depend on the visibility of the nodes, neither for the selector tool nor for the node tool. So
while editing
one path, we can snap to the invisible nodes of other paths.
Yes. I was just saying that it's a little strange, in Node tool, to be able to snap to invisible nodes of unselected objects and not to visible nodes of the selected one. Actually, now that I think of it, perhaps it even makes sense to reverse that and let Node tool only snap to visible nodes in selected object(s) - what do others think?
Although it is counterintuitive when it snaps to a node along a smooth section of a path, for me it is helpful and expected that it snaps to cusped nodes. So I'd like to keep it that way. (one could think of snapping to all nodes except for smooth nodes...)
-johan
Thanks Diederik,
On first try it seems to work great. It is nice to see you put some thought into it (with the not-snapping to selected nodes, etc).
I am using Inkscape at work and this snapping is reallly appreciated.
Do you think you have time to work on snappingindicator soon? (basically to hook it in everywhere) Then work can be done on implementing different kinds, but if all calls are there that is much easier (then we have some overview of the kinds of snapindicators we need?)
Cheers, Johan
________________________________
From: Diederik van Lierop [mailto:mail@...1689...] Sent: zondag 9 maart 2008 14:37 To: bulia byak Cc: inkscape-devel; Engelen, J.B.C. (Johan) Subject: Re: [Inkscape-devel] Snapping to nodes (within same path) bulia byak wrote:
On Tue, Feb 26, 2008 at 4:07 PM, Diederik van Lierop <mail@...1689...> mailto:mail@...1689... wrote:
that is being dragged and should not be snapped to. I've just tried to make the node tool snap to it's own nodes, but it's now also "self-snapping" to the node being dragged...
Ah, yes, now I remember it was indeed a problem. So basically we need to tell it the node to which not to snap, not object.
Just did that. As of rev. 17715, the object snapper receives a list of unselected (i.e. stationary) nodes. The node tool now snaps to any unselected node (cusp or smooth) within the path that's being edited, and to cusp nodes of other paths. It also snaps to the path itself, but only to the stationary segments in between two unselected nodes. Please have a try and see if this fits our needs... Diederik
Diederik: It will probably take a week or two
= soon
:-)
________________________________
From: Diederik van Lierop [mailto:mail@...1689...] Sent: maandag 10 maart 2008 17:14 To: Engelen, J.B.C. (Johan) Cc: buliabyak@...400...; inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Snapping to nodes (within same path) J.B.C.Engelen@...1578... wrote:
Do you think you have time to work on snappingindicator soon? (basically to hook it in everywhere)
Depends on what you'd consider soon ;-). It will probably take a week or two. At the moment I'm working on the selector tool (as you might have noticed), which requires quite some changes in seltrans.cpp. The same holds for the snapping indicator, so if I would start working on that before I finish the current work then I would have a hard time in merging all those changes at some point. So I'd rather keep these issues separated and finish the current work first.... Diederik
participants (4)
-
unknown@example.com
-
bulia byak
-
Diederik van Lierop
-
Rock Star