Skip to content

Commit

Permalink
Minor update in GNETAZFrame. Refs #15844
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jan 20, 2025
1 parent e7f71a7 commit f235c91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/netedit/frames/network/GNETAZFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,8 @@ GNETAZFrame::shapeDrawed() {
for (const auto &triangle : triangulation) {
// update objects in boundary
myViewNet->updateObjectsInBoundary(triangle.getBoundary());
// resize to improve efficiency
edgeIDs.reserve(edgeIDs.size() + myViewNet->getViewObjectsSelector().getEdges().size());
// get only edges with geometry around triangle
for (const auto& edge : myViewNet->getViewObjectsSelector().getEdges()) {
if (myViewNet->getNet()->getAttributeCarriers()->isNetworkElementAroundTriangle(edge, triangle)) {
Expand Down

0 comments on commit f235c91

Please sign in to comment.