W dniu 10 stycznia 2010 05:20 użytkownik bulia byak <buliabyak@...400...> napisał:
This sounds like a command for Path menu, not something specific to Node tool. Maybe also combine it with other cleanup operations, such as removing subpaths with zero or one node, and call "Clean up path". Its promise will be to preserve appearance for solid paths but possibly change it if there are markers or dashes.
Right now it is not possible to create zero-node subpaths. Single-node subpaths can exist only when they have at least one bezier handle extended. The clean up is performed after every action that can create such degenerate subpaths: deletion, break, etc. so I don't think this needs to be put in a separate action.
However, I found a different solution. The join action should at first only join endnodes, and if no joins can be made, it should weld contiguous stretches of the selection into single nodes. Same could be done for segment join. This way selecting all nodes in a path and performing the join action will first join all endnodes according to a pairwise nearest neighbor algorithm, and then do nothing (because when all nodes are selected, then it does nothing by design - removing the path in such a case would be surprising) - exactly what is needed for that RFE.
Regards, Krzysztof