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

Crash when vertices overlay #52

Open
StealthyKamereon opened this issue Sep 24, 2020 · 2 comments
Open

Crash when vertices overlay #52

StealthyKamereon opened this issue Sep 24, 2020 · 2 comments

Comments

@StealthyKamereon
Copy link

StealthyKamereon commented Sep 24, 2020

Let's say I have a first shape with points [(0, 0), (1, 0), (1, 1)] and a second shape with points [(0, 0), (1, 0), (1, -1)]
This crashes the program with error :

File "pyvisgraph/vis_graph.py", line 82, in build
    for edge in _vis_graph(self.graph, batch):
  File "pyvisgraph/vis_graph.py", line 156, in _vis_graph
    for p2 in visible_vertices(p1, graph, scan='half'):
  File "pyvisgraph/visible_vertices.py", line 110, in visible_vertices
    insort(open_edges, k)
  File "pyvisgraph/visible_vertices.py", line 346, in insort
    if x < a[mid]: hi = mid
  File "pyvisgraph/visible_vertices.py", line 388, in __lt__
    aslf = angle2(self.p1, self.p2, self.edge.get_adjacent(same_point))
UnboundLocalError: local variable 'same_point' referenced before assignment
@SteynJanus
Copy link

I have this problem aswel. Did you already happen to find a solution? Thanks in advance :)

@SteynJanus
Copy link

I have this problem aswel. Did you already happen to find a solution? Thanks in advance :)

#26

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