Subscribe to this thread
Home - General / All posts - End a branch at a vertex / split a line
GeoKeys13 post(s)
#24-Jun-20 08:35

Hi,

I am trying to tidy up some vectors (lines), and haven't been able to find a way of splitting a line at a given vertice (other than manually copying the line and deleting the overlaps). Is there a way?

Also (along the same lines) can you tell me how to cut (break/restart the line or create a new branch) at all intersections of two line drawings?

Thanks,

adamw


10,447 post(s)
#24-Jun-20 09:12

Splitting a line is currently pretty laborious, it needs to be made simpler. Right now the safest way is to (a) add another line intersecting the line you want to split at the split location, (b) select both lines, (c) run the Normalize Topology transform on the selection - this will create a new drawing, (d) open the created drawing and run the Decompose to Branches transform - this will create one more drawing, (e) open the second drawing, select everything except parts of the line you added in the first step, then copy and paste it into the original drawing, plus delete the original line.

We are planning to add a context menu command to split a line at the clicked location to make splitting much easier.

Cutting all lines at all intersections is done using the exact same process with Normalize Topology / Decompose to Branches if you want to have a separate record for each branch as well, but this time the complexity is a little more justified.

GeoKeys13 post(s)
#24-Jun-20 09:28

Good to know, thanks. I was looking for a way to insert a branch end in the edit coordinates tab.

adamw


10,447 post(s)
#24-Jun-20 09:50

Well, if you are already in the list of coordinates, there's a hackish method - you press the Save button in the toolbar right above the list, open the text file, locate the coordinate that you want, insert a break there, then press the Load button in the toolbar and load the file back. :-)

When inserting a break, the file changes from something like this:

#

...

C -110.5 239

C -155.5 111 <--- we want to split here

C -7.5 93

...

...to this:

#

...

C -110.5 239

E -155.5 111 <--- so we add a new E with the same XY right above C

C -155.5 111

C -7.5 93

...

Hope this helps a little.

GeoKeys13 post(s)
#09-Jul-20 07:25

yes, thanks - that will work for some situations.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.