Esempio n. 1
0
 // Add a loop to the input geometry.
 public void AddLoop(S2Loop loop)
 {
     bound_ = bound_.Union(loop.GetRectBound());
     if (loop.IsEmptyOrFull())
     {
         // The empty and full loops consist of a single fake "vertex" that should
         // not be added to our point collection.
         return;
     }
     for (int i = 0; i < loop.NumVertices; ++i)
     {
         points_.Add(loop.Vertex(i));
     }
 }