Ejemplo n.º 1
0
 internal void RemoveSimplice(BowyerSimplice toRemove)
 {
     simplices.Remove(toRemove);
     //remove voronoi facets, except those used in other simplices
     foreach (var n in toRemove.nucleis.Except(simplices.SelectMany(s => s.nucleis)))
     {
         voronoiFacets.Remove(n);
     }
 }
Ejemplo n.º 2
0
 internal void AddSimplice(BowyerSimplice toAdd)
 {
     simplices.Add(toAdd);
     //add also simplice Facets
     if (!toAdd.InfiniteSimplice)
     {
         foreach (var n in toAdd.nucleis)
         {
             if (n != this && !voronoiFacets.ContainsKey(n))
             {
                 voronoiFacets.Add(n, new Common.implementations.DefaultVoronoiFacet(this, n));
             }
         }
     }
 }
 public BowyerVoronoiVertex(int dimensionality, BowyerNuclei[] nucleis, HyperSphereConstraint hyperSphereConstraint)
 {
     simplice = new BowyerSimplice(hyperSphereConstraint, dimensionality, this, nucleis);
 }
Ejemplo n.º 4
0
 public BowyerVoronoiVertex(int dimensionality, BowyerNuclei[] nucleis, HyperSphereConstraint hyperSphereConstraint)
 {
     simplice = new BowyerSimplice(hyperSphereConstraint, dimensionality, this, nucleis);
 }
 internal void RemoveSimplice(BowyerSimplice toRemove)
 {
     simplices.Remove(toRemove);
     //remove voronoi facets, except those used in other simplices
     foreach(var n in toRemove.nucleis.Except(simplices.SelectMany(s=>s.nucleis)))
         voronoiFacets.Remove(n);
 }
 internal void AddSimplice(BowyerSimplice toAdd)
 {
     simplices.Add(toAdd);
     //add also simplice Facets
     if (!toAdd.InfiniteSimplice)
     {
         foreach (var n in toAdd.nucleis)
         {
             if (n != this && !voronoiFacets.ContainsKey(n))
                 voronoiFacets.Add(n, new Common.implementations.DefaultVoronoiFacet(this, n));
         }
     }
 }