Function S2Polygon.findValidationError

Returns true if this is *not* a valid polygon and sets "error" appropriately. Otherwise returns false and leaves "error" unchanged.

bool findValidationError (
  out s2.s2error.S2Error error
);

Note that in error messages, loops that represent holes have their edges numbered in reverse order, starting from the last vertex of the loop.

REQUIRES

error != nullptr