Skip to content

Commit

Permalink
Merge pull request #53 from mmassing/fix_access_to_deleted_edge
Browse files Browse the repository at this point in the history
Fix acces to deleted edge
  • Loading branch information
aewallin authored Mar 19, 2023
2 parents 40d20a6 + c2b3996 commit 1af15b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voronoidiagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1576,14 +1576,14 @@ void VoronoiDiagram::add_vertices( Site* new_site ) {
}
HEVertex q = g.add_vertex( VoronoiVertex( sl.p, NEW, NORMAL, new_site->apex_point( sl.p ), sl.k3 ) );
modified_vertices.insert(q);
g.add_vertex_in_edge( q, q_edges[m] );
g[q].max_error = vpos->dist_error( q_edges[m], sl, new_site);
if (debug) {
HEVertex src = g.source(q_edges[m]);
HEVertex trg = g.target(q_edges[m]);
std::cout << " NEW vertex " << g[q].index << " k3= "<< g[q].k3 << " on edge " << g[src].index << " - " << g[trg].index << "\n";
assert( (g[q].k3==1) || (g[q].k3==-1) );
}
g.add_vertex_in_edge( q, q_edges[m] );
}
if (debug) std::cout << "add_vertices() done.\n";
}
Expand Down

0 comments on commit 1af15b8

Please sign in to comment.