Convenience constructors to disable the automatic validity checking controlled by the --s2debug flag. Example:
S2Polyline* line = new S2Polyline(vertices, S2Debug::DISABLE);
This is equivalent to:
S2Polyline* line = new S2Polyline; line->set_s2debug_override(S2Debug::DISABLE); line->Init(vertices);
The main reason to use this constructors is if you intend to call IsValid() explicitly. See set_s2debug_override() for details.
See Implementation
Convenience constructors to disable the automatic validity checking controlled by the --s2debug flag. Example:
S2Polyline* line = new S2Polyline(vertices, S2Debug::DISABLE);
This is equivalent to:
S2Polyline* line = new S2Polyline; line->set_s2debug_override(S2Debug::DISABLE); line->Init(vertices);
The main reason to use this constructors is if you intend to call IsValid() explicitly. See set_s2debug_override() for details.