Exemplo n.º 1
0
 internal void UpdateInnerPoints()
 {
     this.InnerPoints.Clear();
     for (var arrayIndex = 0; arrayIndex < this.Triangles.Count; arrayIndex++)
     {
         for (var triangleIndex = 0; triangleIndex < this.Triangles[arrayIndex].Count; triangleIndex++)
         {
             foreach (var point in this.Triangles[arrayIndex][triangleIndex].Points)
             {
                 if (!InnerPoints.ContainsKey(point))
                 {
                     InnerPoints.Add(point, false);
                 }
             }
         }
     }
 }
 /// <summary>
 /// Adds a new point to cluster
 /// </summary>
 /// <param name="p">Point</param>
 public void AddPoint(Point p)
 {
     InnerPoints.Add(p);
     Properties["pointcount"] = (int)Properties["pointcount"] + 1;
     Properties["pointlist"]  = ((string)Properties["pointlist"]) + "P-" + p.Properties["id"].ToString() + ", ";
 }