Like S2PolygonLayer, but adds the polygon to a MutableS2ShapeIndex (if the polygon is non-empty).
A layer type that assembles edges (directed or undirected) into an S2Polygon. Returns an error if the edges cannot be assembled into loops.
See Source File