Commit 760147a4 authored by Matthias Betz's avatar Matthias Betz
Browse files

integrate sweep healing

parent cee9e1ef
Pipeline #12441 passed with stage
in 2 minutes and 31 seconds
...@@ -818,8 +818,8 @@ public class MainWindow extends Application { ...@@ -818,8 +818,8 @@ public class MainWindow extends Application {
MenuItem deleteOption = new MenuItem(Localization.getText("MainWindow.delete")); MenuItem deleteOption = new MenuItem(Localization.getText("MainWindow.delete"));
deleteOption.setOnAction(ae -> controller.delete(featureView.getSelectionModel().getSelectedItem())); deleteOption.setOnAction(ae -> controller.delete(featureView.getSelectionModel().getSelectedItem()));
menu.getItems().add(deleteOption); menu.getItems().add(deleteOption);
featureView.setContextMenu(menu);
*/ */
featureView.setContextMenu(menu);
} }
public void fetchCopyAction(Renderable node) { public void fetchCopyAction(Renderable node) {
......
...@@ -12,6 +12,7 @@ import de.hft.stuttgart.citydoctor2.healing.HealMainBuilding; ...@@ -12,6 +12,7 @@ import de.hft.stuttgart.citydoctor2.healing.HealMainBuilding;
import de.hft.stuttgart.citydoctor2.healing.HealMissingSolid; import de.hft.stuttgart.citydoctor2.healing.HealMissingSolid;
import de.hft.stuttgart.citydoctor2.healing.HealNonManifoldEdgeError; import de.hft.stuttgart.citydoctor2.healing.HealNonManifoldEdgeError;
import de.hft.stuttgart.citydoctor2.healing.HealPlanarPolygonError; import de.hft.stuttgart.citydoctor2.healing.HealPlanarPolygonError;
import de.hft.stuttgart.citydoctor2.healing.HealPlanarPolygonSweep;
import de.hft.stuttgart.citydoctor2.healing.HealPolygonWithoutSurface; import de.hft.stuttgart.citydoctor2.healing.HealPolygonWithoutSurface;
import de.hft.stuttgart.citydoctor2.healing.HealPolygonWrongOrientationError; import de.hft.stuttgart.citydoctor2.healing.HealPolygonWrongOrientationError;
import de.hft.stuttgart.citydoctor2.healing.HealRingNotClosedError; import de.hft.stuttgart.citydoctor2.healing.HealRingNotClosedError;
...@@ -37,6 +38,7 @@ public class HealingMethods { ...@@ -37,6 +38,7 @@ public class HealingMethods {
healingMethods.add(HealingMethodPrototype.of(new HealTooFewPoints())); healingMethods.add(HealingMethodPrototype.of(new HealTooFewPoints()));
healingMethods.add(HealingMethodPrototype.of(new HealRingNotClosedError())); healingMethods.add(HealingMethodPrototype.of(new HealRingNotClosedError()));
healingMethods.add(HealingMethodPrototype.of(new HealRingSelfIntError())); healingMethods.add(HealingMethodPrototype.of(new HealRingSelfIntError()));
healingMethods.add(HealingMethodPrototype.of(new HealPlanarPolygonSweep()));
healingMethods.add(HealingMethodPrototype.of(new HealPlanarPolygonError())); healingMethods.add(HealingMethodPrototype.of(new HealPlanarPolygonError()));
// healingMethods.add(HealingMethodPrototype.of(new HealPlanarPolygonCpp())); // healingMethods.add(HealingMethodPrototype.of(new HealPlanarPolygonCpp()));
healingMethods.add(HealingMethodPrototype.of(new HealSameOrientationError())); healingMethods.add(HealingMethodPrototype.of(new HealSameOrientationError()));
......
...@@ -37,8 +37,7 @@ public class HealPlanarPolygonSweep implements HealingMethod { ...@@ -37,8 +37,7 @@ public class HealPlanarPolygonSweep implements HealingMethod {
} }
logger.debug("Repair by Sweep not possible"); logger.debug("Repair by Sweep not possible");
// The old Heal-Method as Fallback return false;
return new HealPlanarPolygonError().visit(err, l);
} }
@Override @Override
......
Supports Markdown
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