Commit 3a4ad3b0 authored by Pries's avatar Pries
Browse files

SweepUtilities: Tolerances changed

parent 96df162f
Pipeline #12448 passed with stage
in 2 minutes and 38 seconds
...@@ -29,7 +29,7 @@ public class HealPlanarPolygonSweep implements HealingMethod { ...@@ -29,7 +29,7 @@ public class HealPlanarPolygonSweep implements HealingMethod {
return false; return false;
} }
SweepUtilities utils = new SweepUtilities(err, 0.001, 0.001); SweepUtilities utils = new SweepUtilities(err, 0.01, 0.0001);
utils.initialize(); utils.initialize();
if (utils.calculate()) { if (utils.calculate()) {
utils.doHeal(); utils.doHeal();
......
...@@ -22,9 +22,9 @@ public class SweepUtilities { ...@@ -22,9 +22,9 @@ public class SweepUtilities {
private Plane targetPlane; private Plane targetPlane;
private Polygon errorPolygon; private Polygon errorPolygon;
private double minSweepEdgeLength; private double minSweepEdgeLength = 0.01;
private double pointOnPlaneTolerance; private double pointOnPlaneTolerance = 0.00011;
private double minLinePlaneAngle; private double minLinePlaneAngle = 0.00011;
private List<SweepVertex> sweepVertices; private List<SweepVertex> sweepVertices;
...@@ -33,8 +33,8 @@ public class SweepUtilities { ...@@ -33,8 +33,8 @@ public class SweepUtilities {
double sweepEdgeAndAngleTolerance) { double sweepEdgeAndAngleTolerance) {
this.pointOnPlaneTolerance = pointOnPlaneTolerance; this.pointOnPlaneTolerance = pointOnPlaneTolerance;
minSweepEdgeLength = sweepEdgeAndAngleTolerance; minSweepEdgeLength = sweepEdgeAndAngleTolerance * 1.1;
minLinePlaneAngle = sweepEdgeAndAngleTolerance; minLinePlaneAngle = sweepEdgeAndAngleTolerance * 1.1;
if (err == null) { if (err == null) {
return; return;
......
...@@ -79,7 +79,7 @@ public class SweepVertex { ...@@ -79,7 +79,7 @@ public class SweepVertex {
return; return;
} }
if ( targetPlane.getDistance(sweepVertex) < pointOnPlaneTolerance ) { if ( targetPlane.getDistance(sweepVertex) <= pointOnPlaneTolerance ) {
status = SweepVertexStatus.ON_PLANE; status = SweepVertexStatus.ON_PLANE;
} }
else if ( outgoingEdges.size() == 0 ) { else if ( outgoingEdges.size() == 0 ) {
......
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