Commit 9d8e0e40 authored by Numanoglu's avatar Numanoglu
Browse files

Fallback for not sweepable: old healing-Method

parent bed38f6d
Pipeline #12430 failed with stage
......@@ -12,25 +12,6 @@ public class HealPlanarPolygonSweep implements HealingMethod {
private static final Logger logger = LogManager.getLogger(HealPlanarPolygonSweep.class);
/* todo: in HealPlanarPolygonSweep visit-Methode austauschen
public boolean visit(NonPlanarPolygonDistancePlaneError err, ModificationListener l) {
logger.debug("Executing Repair for NonPlanarPolygonDistancePlaneError");
SweepUtilities utils = new SweepUtilities(err);
todo: Epsilon-Werte setzen
utils.initialize();
if ( utils.calculate() ) {
utils.doHeal();
return true;
}
else {
logger.debug("Repair by Sweep not possible");
return false;
}
}
*/
// DONE
@Override
public boolean visit(NonPlanarPolygonDistancePlaneError err, ModificationListener l) {
logger.debug("Executing Repair for NonPlanarPolygonDistancePlaneError");
......@@ -56,7 +37,8 @@ public class HealPlanarPolygonSweep implements HealingMethod {
}
logger.debug("Repair by Sweep not possible");
return false;
// The old Heal-Method as Fallback
return new HealPlanarPolygonError().visit(err, l);
}
@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