Function S2Polygon.initialize

Initialize a polygon from a single loop. Note that this method automatically converts the special empty loop (see S2Loop) into an empty polygon, unlike the vector-of-loops InitNested() method which does not allow empty loops at all.

void initialize (
  S2Loop loop
);