private boolean skipVertex(double x1, double y1, double x2, double y2, double x3, double y3) {
    return (minVertexArea > 0 && VWSimplifier.triangleArea(x1, y1, x2, y2, x3, y3) < minVertexArea) ||
      (minSquaredVertexOffset > 0 &&
        DouglasPeuckerSimplifier.getSqSegDist(x2, y2, x1, y1, x3, y3) < minSquaredVertexOffset);
  }
Sets the maximum number of times that smoothing runs.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/DualMidpointSmoother.java