Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions siteupdate/cplusplus/classes/GraphGeneration/PlaceRadius.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -84,8 +84,10 @@ std::unordered_set<HGVertex*> PlaceRadius::v_search(WaypointQuadtree *qt, Highwa
// we search for vertices within this quadrant
if (!qt->refined())
{ for (Waypoint *p : qt->points)
if ((!p->colocated || p == p->colocated->front()) && contains_vertex(p->lat, p->lng))
vertex_set.insert(g->vertices.at(p));
if ( (!p->colocated || p == p->colocated->front())
&& p->is_or_colocated_with_active_or_preview()
&& contains_vertex(p->lat, p->lng)
) vertex_set.insert(g->vertices.at(p));
}
// if we're not a terminal quadrant, we need to determine which
// of our child quadrants we need to search and recurse into each
Expand Down
2 changes: 1 addition & 1 deletion siteupdate/python-teresco/siteupdate.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -1569,7 +1569,7 @@ def v_search(self, qt, g, w_bound, e_bound):
# we search for vertices within this quadrant
if qt.points is not None:
for p in qt.points:
if (p.colocated is None or p == p.colocated[0]) and self.contains_vertex(p):
if (p.colocated is None or p == p.colocated[0]) and p.is_or_colocated_with_active_or_preview() and self.contains_vertex(p):
vertex_set.add(g.vertices[p])
# if we're not a terminal quadrant, we need to determine which
# of our child quadrants we need to search and recurse into each
Expand Down