rmp icon indicating copy to clipboard operation
rmp copied to clipboard

Remove the node from the middle of the segment without segmented segments

Open lh11117 opened this issue 9 months ago • 2 comments

I want to remove the node from the middle of the segment, if I do, the segment will be segmented.

我想从一条线段中间删除一个节点,在那之后,线段将被拆分成2段

So, how to remove the node from the middle of the segment without segmented segments?

所以,如何在不拆分线段的前提下删除中间的节点?

For example, look at picture below:

例如,请看下图:

Image

If I remove Stn3, it will be like this:

如果我删除车站3,就会变成这样:

Image

But I except to get this:

但是我希望得到这样的:

Image

I'm looking forward to this new function, so that I can reduce unnecessary work in sometimes.

我期待这个新功能,然后有时我可以减少不必要的工作

lh11117 avatar Mar 30 '25 06:03 lh11117

嗨,感谢建议,这个功能确实非常实用,我们会今年内实现 :)

备注:单线很好处理,但是当_车站3_有多条线路连接时,或许可以根据线段属性来判断如何连接?线段的所有属性必须要完全一样,才可以重连。设计上还要考虑清楚,测试也有必要添加 :)

thekingofcity avatar Mar 30 '25 17:03 thekingofcity

有些线段似乎无法实现直接相连,如: Image 同一线路的两端并非平滑连接,此时直接看做1条线段是不太可行的。 建议:可以把车站替换为虚拟节点。

hackerfyl avatar Apr 07 '25 13:04 hackerfyl