On 8/22/07, Diederik en Rezi <mail@...1689...> wrote:
In notepath.cpp from line 4051 onwards, the node type is determined.
As far as I can tell this class is not being used in the object-snapper, so I guess we'll have to do without this.
It's very easy just to borrow the math from there. Basically a node is smooth when its handles and itself all lie on one line.
It's on my to-do list:
- snapping to objects while dragging guides
- improve object-snapper performance (e.g. don't look for snapping
candidates and collect all paths/nodes for every single point to snap)
Someone here suggested a great idea: in seltrans, snap only if the current move/scale etc. is "small enough" and skip snapping otherwise. The "small enough" can be defined as a fraction of the current snapping distance. This way fast moves will be more responsive and only small slow movements will snap.