Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing edge in edge-loop-edge structure. #17

Open
charliebudd opened this issue Jun 25, 2021 · 1 comment
Open

Missing edge in edge-loop-edge structure. #17

charliebudd opened this issue Jun 25, 2021 · 1 comment

Comments

@charliebudd
Copy link

I have a case where there is a single edge which splits into two before rejoining into a final edge, forming a loop.

I would expect a node to be formed at each intersection before and after the loop, and an edge following each side of the loop. However one edge of the loop is ommited from the resulting graph. Whats strange is the nodes are included suggesting the structure has been correctly picked up but the edge is just missing?

image
image

I printed out the nodes and edges which shows the same as the images...
Nodes: 0, 1, 2, 3
Edges: (0, 1), (1, 2), (2, 3)

I did think the connections of the skeleton may be broken so I tried cropping out the node at the end of the loop but the graph comes out as well in these cases...
image
image

@yxdragon
Copy link
Member

yxdragon commented Aug 5, 2021

def build_sknw(ske, multi=False, iso=True, ring=True, full=True):

please try multi=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants