Skip to content

Commit

Permalink
Updated GNEContour. Refs #14109
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent 55ed5f0 commit a947aa8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/netedit/elements/GNEContour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ GNEContour::drawInnenContourClosed(const GUIVisualizationSettings& s, const GUIV
void
GNEContour::buildContourClosedShape(const GUIVisualizationSettings& s, const GUIVisualizationSettings::Detail d,
const PositionVector& shape, const double scale) const {
// reset calculated shape
myCalculatedShape->clear();
// set calculated shape
*myCalculatedShape = shape;
// scale shape
myCalculatedShape->scaleRelative(scale);
// close
Expand Down Expand Up @@ -518,12 +518,7 @@ GNEContour::buildContourEdges(const GUIVisualizationSettings& /*s*/, const GUIVi

void
GNEContour::updateContourBondary() const {
myContourBoundary->reset();
for (const auto &dottedGeometry : *myDottedGeometries) {
if (dottedGeometry.getUnresampledShape().size() > 0) {
myContourBoundary->add(dottedGeometry.getUnresampledShape().getBoxBoundary());
}
}
*myContourBoundary = myCalculatedShape->getBoxBoundary();
}


Expand Down

0 comments on commit a947aa8

Please sign in to comment.