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 {
return false;
}
SweepUtilities utils = new SweepUtilities(err, 0.001, 0.001);
SweepUtilities utils = new SweepUtilities(err, 0.01, 0.0001);
utils.initialize();
if (utils.calculate()) {
utils.doHeal();
......
......@@ -22,9 +22,9 @@ public class SweepUtilities {
private Plane targetPlane;
private Polygon errorPolygon;
private double minSweepEdgeLength;
private double pointOnPlaneTolerance;
private double minLinePlaneAngle;
private double minSweepEdgeLength = 0.01;
private double pointOnPlaneTolerance = 0.00011;
private double minLinePlaneAngle = 0.00011;
private List<SweepVertex> sweepVertices;
......@@ -33,8 +33,8 @@ public class SweepUtilities {
double sweepEdgeAndAngleTolerance) {
this.pointOnPlaneTolerance = pointOnPlaneTolerance;
minSweepEdgeLength = sweepEdgeAndAngleTolerance;
minLinePlaneAngle = sweepEdgeAndAngleTolerance;
minSweepEdgeLength = sweepEdgeAndAngleTolerance * 1.1;
minLinePlaneAngle = sweepEdgeAndAngleTolerance * 1.1;
if (err == null) {
return;
......
......@@ -79,7 +79,7 @@ public class SweepVertex {
return;
}
if ( targetPlane.getDistance(sweepVertex) < pointOnPlaneTolerance ) {
if ( targetPlane.getDistance(sweepVertex) <= pointOnPlaneTolerance ) {
status = SweepVertexStatus.ON_PLANE;
}
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