This function builds an `S2Polygon` using the C++ polygon builder. See the header file inst/include/s2/s2polygonbuilder.h for details on how to use the arguments.
S2Polygon(x, validate = TRUE, xor_edges = TRUE, vertex_merge_radius = 0,
edge_splice_fraction = 0.866, undirected_edges = FALSE)
Input to construct the polygon from. At the moment the only valid input is a list of loops.
Logical to validate the S2Polygon. Default is `TRUE`.
Logical to indicate that edges should be 'xor'ed to avoind multiple loops with common edges. Default is `TRUE`.
Numeric indicating that vertices within this distance should be merged. Defaults to zero (i.e. no merging).
Determines when edges are spliced. See C++ header as indicated in the description of this function. Default is 0.866.
Logical to indicate that input edges should be considered undirected. Default is `FALSE`. multiple loops with common edges. Default is `TRUE`.