setDistanceTolerance method

void setDistanceTolerance(
  1. double distanceTolerance
)

Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry. The tolerance value must be non-negative.

@param distanceTolerance the approximation tolerance to use

Implementation

void setDistanceTolerance(double distanceTolerance) {
  if (distanceTolerance < 0.0)
    throw ArgumentError("Tolerance must be non-negative");
  _distanceTolerance = distanceTolerance;
}