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.
1 2 3 |
x |
Input to construct the polygon from. At the moment the only valid input is a list of loops. |
validate |
Logical to validate the S2Polygon. Default is 'TRUE'. |
xor_edges |
Logical to indicate that edges should be 'xor'ed to avoind multiple loops with common edges. Default is 'TRUE'. |
vertex_merge_radius |
Numeric indicating that vertices within this distance should be merged. Defaults to zero (i.e. no merging). |
edge_splice_fraction |
Determines when edges are spliced. See C++ header as indicated in the description of this function. Default is 0.866. |
undirected_edges |
Logical to indicate that input edges should be considered undirected. Default is 'FALSE'. multiple loops with common edges. Default is 'TRUE'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.