Commit 3225e84a authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

Feature #50 Remove overlapping obstacle

If a new obstacle is created remove all obstacles which are completely
covered by the new one.
parent 0379eb46
......@@ -181,6 +181,16 @@ public class TopographyBuilder implements Iterable<ScenarioElement> {
public void addObstacle(final Obstacle obstacle) {
Iterator<Obstacle> iter = getObstacleIterator();
while (iter.hasNext()){
Obstacle o =;
if (obstacle.getShape().contains(o.getShape().getBounds2D())){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment