Function S2Builder.addPolygon

Adds the loops in the given polygon. Loops representing holes have their edge directions automatically reversed as described for AddLoop(). Note that this method does not distinguish between the empty and full polygons, i.e. adding a full polygon has the same effect as adding an empty one.

void addPolygon (
  in const(S2Polygon) polygon
);