Function S2Builder.build

Performs the requested edge splitting, snapping, simplification, etc, and then assembles the resulting edges into the requested output layers.

bool build (
  ref s2.s2error.S2Error error
);

Returns true if all edges were assembled; otherwise sets "error" appropriately. Depending on the error, some or all output layers may have been created. Automatically resets the S2Builder state so that it can be reused.