Skip to content

Commit f78b114

Browse files
committed
pad: fix pruning of RDL access points to ensure perfectly aligned points are not removed
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 8d776b7 commit f78b114

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)