S2Polyline.setS2debugOverride

Allows overriding the automatic validity checks controlled by the --s2debug flag. If this flag is true, then polylines are automatically checked for validity as they are initialized. The main reason to disable this flag is if you intend to call IsValid() explicitly, like this:

S2Polyline line; line.set_s2debug_override(S2Debug::DISABLE); line.Init(...); if (!line.IsValid()) { ... }

Without the call to set_s2debug_override(), invalid data would cause a fatal error in Init() whenever the --s2debug flag is enabled.

class S2Polyline
void
setS2debugOverride

Meta