Skip to content

Commit effb4b1

Browse files
authored
Merge pull request #8842 from gadfort/pad-rdl-access-bug
pad: fix pruning of RDL access points to ensure perfectly aligned points are not removed
2 parents db86188 + f78b114 commit effb4b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pad/src/RDLRouter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,15 @@ void RDLRouter::populateTerminalAccessPoints(RouteTarget& target) const
765765

766766
for (const auto& edge : getVertexEdges(itr->second)) {
767767
const odb::Point& pt0 = vertex_point_map_.at(edge.m_source);
768+
if (pt0 == line.pt0() || pt0 == line.pt1()) {
769+
// lines will connect, so keep
770+
continue;
771+
}
768772
const odb::Point& pt1 = vertex_point_map_.at(edge.m_target);
773+
if (pt1 == line.pt0() || pt1 == line.pt1()) {
774+
// lines will connect, so keep
775+
continue;
776+
}
769777
const odb::Line edge_line(pt0, pt1);
770778

771779
if (boost::geometry::intersects(line.getPoints(),

0 commit comments

Comments
 (0)