Exemplo n.º 1
0
        public void Clear()
        {
            if (openPolygons == null)
            {
                openPolygons = new List <PointChain> (16);
            }
            else
            {
                openPolygons.Clear();
            }
            openPolygonsCount = 0;
            if (closedPolygons == null)
            {
                closedPolygons = new List <PointChain> (16);
            }
            else
            {
                closedPolygons.Clear();
            }
            if (pointChainPool == null)
            {
                pointChainPool = new List <PointChain> (16);
            }
            pointChainPoolUsed = 0;

            tempPolygon.Clear();
        }
Exemplo n.º 2
0
 public void Clear()
 {
     openPolygons.Clear();
     openPolygonsCount = 0;
     closedPolygons.Clear();
     pointChainPool.Clear();
     pointChainPoolUsed = 0;
     tempPolygon.Clear();
 }